19 lines
491 B
Python
Raw Normal View History

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