diff options
Diffstat (limited to 'packages/meshbay-cli/src/meshbay_cli/__main__.py')
| -rw-r--r-- | packages/meshbay-cli/src/meshbay_cli/__main__.py | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/packages/meshbay-cli/src/meshbay_cli/__main__.py b/packages/meshbay-cli/src/meshbay_cli/__main__.py index 2b0b349..91e523a 100644 --- a/packages/meshbay-cli/src/meshbay_cli/__main__.py +++ b/packages/meshbay-cli/src/meshbay_cli/__main__.py @@ -11,12 +11,28 @@ import os import sys from . import __version__ -from .commands import get, groups, login, logout, ls, put, trust +from .commands import ( + browser_access, + decline, + devices, + get, + groups, + invitations, + join, + leave, + login, + logout, + ls, + put, + trust, +) from .commands.context import Context from .errors import INTERRUPTED, USAGE, CliError -ACTIONS = {"login": login, "logout": logout, "groups": groups, "ls": ls, "get": get, - "put": put, "trust": trust} +ACTIONS = {"login": login, "logout": logout, "groups": groups, "invitations": invitations, + "join": join, "decline": decline, "leave": leave, "ls": ls, "get": get, + "put": put, "devices": devices, "trust": trust, + "browser-access": browser_access} class _Parser(argparse.ArgumentParser): @@ -49,8 +65,8 @@ def build_parser() -> argparse.ArgumentParser: """Global options are accepted before the action and after it.""" p = _Parser( prog="meshbay-cli", - description="A member's MeshBay files, from a terminal. Run with no argument " - "for the interactive mode.") + description="A member's MeshBay groups and files, from a terminal. Run with no " + "argument for the interactive mode.") _global_options(p, None) p.add_argument("--version", action="version", version=f"meshbay-cli {__version__}") # SUPPRESS: an option the action's own parser did not see must not |