mirror of
https://github.com/matrix-org/pantalaimon.git
synced 2025-01-06 21:28:10 -05:00
panctl: Add a version option.
This commit is contained in:
parent
f8820c0e73
commit
160fbbaf98
@ -22,6 +22,7 @@ from itertools import zip_longest
|
|||||||
from typing import List
|
from typing import List
|
||||||
|
|
||||||
import attr
|
import attr
|
||||||
|
import click
|
||||||
from gi.repository import GLib
|
from gi.repository import GLib
|
||||||
from prompt_toolkit import HTML, PromptSession, print_formatted_text
|
from prompt_toolkit import HTML, PromptSession, print_formatted_text
|
||||||
from prompt_toolkit.completion import Completer, Completion, PathCompleter
|
from prompt_toolkit.completion import Completer, Completion, PathCompleter
|
||||||
@ -654,6 +655,11 @@ class PanCtl:
|
|||||||
))
|
))
|
||||||
|
|
||||||
|
|
||||||
|
@click.command(
|
||||||
|
help=("panctl is a small interactive repl to introspect and control"
|
||||||
|
"the pantalaimon daemon.")
|
||||||
|
)
|
||||||
|
@click.version_option(version=0.1, prog_name="panctl")
|
||||||
def main():
|
def main():
|
||||||
loop = asyncio.get_event_loop()
|
loop = asyncio.get_event_loop()
|
||||||
glib_loop = GLib.MainLoop()
|
glib_loop = GLib.MainLoop()
|
||||||
|
Loading…
Reference in New Issue
Block a user