openwebrx-clone/owrx/source/runds.py

19 lines
491 B
Python
Raw Normal View History

2020-11-29 23:34:44 +00:00
from owrx.source.connector import ConnectorSource
2021-02-03 02:21:09 +00:00
from owrx.command import Argument, Flag, Option
2020-11-29 23:34:44 +00:00
2021-02-03 02:21:09 +00:00
class RundsSource(ConnectorSource):
2020-11-29 23:34:44 +00:00
def getCommandMapper(self):
return (
super()
.getCommandMapper()
2021-02-03 02:21:09 +00:00
.setBase("runds_connector")
2021-01-20 16:01:46 +00:00
.setMappings(
{
"long": Flag("-l"),
"remote": Argument(),
2021-02-03 02:21:09 +00:00
"protocol": Option("-m"),
2021-01-20 16:01:46 +00:00
}
)
2020-11-29 23:34:44 +00:00
)