openwebrx-clone/owrx/source/runds.py

19 lines
491 B
Python

from owrx.source.connector import ConnectorSource
from owrx.command import Argument, Flag, Option
class RundsSource(ConnectorSource):
def getCommandMapper(self):
return (
super()
.getCommandMapper()
.setBase("runds_connector")
.setMappings(
{
"long": Flag("-l"),
"remote": Argument(),
"protocol": Option("-m"),
}
)
)