mirror of
https://github.com/craigerl/aprsd.git
synced 2024-12-20 16:41:13 -05:00
Fixed test-plugin
This commit is contained in:
parent
9187b9781a
commit
617973f561
@ -17,13 +17,7 @@ LOG = logging.getLogger("APRSD")
|
|||||||
CONTEXT_SETTINGS = dict(help_option_names=["-h", "--help"])
|
CONTEXT_SETTINGS = dict(help_option_names=["-h", "--help"])
|
||||||
|
|
||||||
|
|
||||||
@cli.group(help="Development tools", context_settings=CONTEXT_SETTINGS)
|
@cli.command()
|
||||||
@click.pass_context
|
|
||||||
def dev(ctx):
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
@dev.command()
|
|
||||||
@click.option(
|
@click.option(
|
||||||
"--aprs-login",
|
"--aprs-login",
|
||||||
envvar="APRS_LOGIN",
|
envvar="APRS_LOGIN",
|
||||||
@ -65,7 +59,12 @@ def test_plugin(
|
|||||||
number,
|
number,
|
||||||
message,
|
message,
|
||||||
):
|
):
|
||||||
"""APRSD Plugin test app."""
|
"""Test an APRSD plugin
|
||||||
|
|
||||||
|
This allows you to develop a plugin and send a 'command' string
|
||||||
|
directly to the plugin during development/testing. Use this before
|
||||||
|
releasing as a plugin for aprsd.
|
||||||
|
"""
|
||||||
config = ctx.obj["config"]
|
config = ctx.obj["config"]
|
||||||
fromcall = aprs_login
|
fromcall = aprs_login
|
||||||
|
|
||||||
|
@ -45,8 +45,8 @@ LOG = logging.getLogger("APRSD")
|
|||||||
help="Wait for a response to the message?",
|
help="Wait for a response to the message?",
|
||||||
)
|
)
|
||||||
@click.option("--raw", default=None, help="Send a raw message. Implies --no-ack")
|
@click.option("--raw", default=None, help="Send a raw message. Implies --no-ack")
|
||||||
@click.argument("tocallsign", required=False)
|
@click.argument("tocallsign", required=True)
|
||||||
@click.argument("command", nargs=-1, required=False)
|
@click.argument("command", nargs=-1, required=True)
|
||||||
@click.pass_context
|
@click.pass_context
|
||||||
def send_message(
|
def send_message(
|
||||||
ctx,
|
ctx,
|
||||||
|
Loading…
Reference in New Issue
Block a user