-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
71 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
"""FRB VOE CLI.""" | ||
|
||
import click | ||
from frbvoe.cli.voe import voe | ||
|
||
|
||
@click.group() | ||
def cli(): | ||
"""FRB VOE Command Line Interface.""" | ||
pass | ||
|
||
@cli.command("version", help="FRB VOE version.") | ||
def version(): | ||
"""FRB VOE version.""" | ||
click.echo("VOEvent Tools v0.1.0") | ||
|
||
cli.add_command(voe) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
"""VOE CLI.""" | ||
|
||
import click | ||
|
||
@click.group(name="voe", help="VOEvent Tools.") | ||
def voe(): | ||
"""Manage workflow pipelines.""" | ||
pass | ||
|
||
@voe.command("send", help="Send VOEvent.") | ||
@click.option( | ||
"--hostname", | ||
default="localhost", | ||
help="Destination to send the VOE." | ||
) | ||
@click.option("--port", default=8098, help="Port to send the VOE.") | ||
@click.option("--file", default="./voe",type=click.File("r"), help="VOEvent file.", show_default=True) | ||
def send(hostname, port): | ||
"""Send VOEvent.""" | ||
click.echo(f"Send VOEvent.{hostname}:{port}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters