akashcli 4.6.5__tar.gz → 4.6.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {akashcli-4.6.5 → akashcli-4.6.6}/PKG-INFO +1 -1
- {akashcli-4.6.5 → akashcli-4.6.6}/akashcli/__init__.py +1 -1
- {akashcli-4.6.5 → akashcli-4.6.6}/akashcli/cli.py +11 -3
- {akashcli-4.6.5 → akashcli-4.6.6}/akashcli/relay.py +1 -1
- {akashcli-4.6.5 → akashcli-4.6.6}/akashcli.egg-info/PKG-INFO +1 -1
- {akashcli-4.6.5 → akashcli-4.6.6}/pyproject.toml +1 -1
- {akashcli-4.6.5 → akashcli-4.6.6}/README.md +0 -0
- {akashcli-4.6.5 → akashcli-4.6.6}/akashcli/_net.py +0 -0
- {akashcli-4.6.5 → akashcli-4.6.6}/akashcli/auth.py +0 -0
- {akashcli-4.6.5 → akashcli-4.6.6}/akashcli/client.py +0 -0
- {akashcli-4.6.5 → akashcli-4.6.6}/akashcli/config.py +0 -0
- {akashcli-4.6.5 → akashcli-4.6.6}/akashcli/crypto.py +0 -0
- {akashcli-4.6.5 → akashcli-4.6.6}/akashcli/env_manager.py +0 -0
- {akashcli-4.6.5 → akashcli-4.6.6}/akashcli/exceptions.py +0 -0
- {akashcli-4.6.5 → akashcli-4.6.6}/akashcli/exec.py +0 -0
- {akashcli-4.6.5 → akashcli-4.6.6}/akashcli/integrity.py +0 -0
- {akashcli-4.6.5 → akashcli-4.6.6}/akashcli/logger.py +0 -0
- {akashcli-4.6.5 → akashcli-4.6.6}/akashcli/models.py +0 -0
- {akashcli-4.6.5 → akashcli-4.6.6}/akashcli/p2p.py +0 -0
- {akashcli-4.6.5 → akashcli-4.6.6}/akashcli/packages.py +0 -0
- {akashcli-4.6.5 → akashcli-4.6.6}/akashcli/restore.py +0 -0
- {akashcli-4.6.5 → akashcli-4.6.6}/akashcli/snapshot_crypto.py +0 -0
- {akashcli-4.6.5 → akashcli-4.6.6}/akashcli/storage.py +0 -0
- {akashcli-4.6.5 → akashcli-4.6.6}/akashcli/terminal.py +0 -0
- {akashcli-4.6.5 → akashcli-4.6.6}/akashcli/uploader.py +0 -0
- {akashcli-4.6.5 → akashcli-4.6.6}/akashcli/utils.py +0 -0
- {akashcli-4.6.5 → akashcli-4.6.6}/akashcli.egg-info/SOURCES.txt +0 -0
- {akashcli-4.6.5 → akashcli-4.6.6}/akashcli.egg-info/dependency_links.txt +0 -0
- {akashcli-4.6.5 → akashcli-4.6.6}/akashcli.egg-info/entry_points.txt +0 -0
- {akashcli-4.6.5 → akashcli-4.6.6}/akashcli.egg-info/requires.txt +0 -0
- {akashcli-4.6.5 → akashcli-4.6.6}/akashcli.egg-info/top_level.txt +0 -0
- {akashcli-4.6.5 → akashcli-4.6.6}/setup.cfg +0 -0
|
@@ -155,10 +155,19 @@ app = typer.Typer(
|
|
|
155
155
|
no_args_is_help=False,
|
|
156
156
|
)
|
|
157
157
|
|
|
158
|
+
def raise_exit():
|
|
159
|
+
raise typer.Exit(0)
|
|
160
|
+
|
|
161
|
+
def _print_version(value: bool):
|
|
162
|
+
if value:
|
|
163
|
+
from . import __version__
|
|
164
|
+
print(f"akashcli v{__version__}")
|
|
165
|
+
raise typer.Exit(0)
|
|
166
|
+
|
|
158
167
|
@app.callback(invoke_without_command=True)
|
|
159
168
|
def _main(ctx: typer.Context,
|
|
160
169
|
version: bool = typer.Option(False, "--version", "-v", is_eager=True, expose_value=False,
|
|
161
|
-
callback=
|
|
170
|
+
callback=_print_version,
|
|
162
171
|
help="Show version and exit."),
|
|
163
172
|
help: bool = typer.Option(False, "--help", "-h", is_eager=True, expose_value=False,
|
|
164
173
|
callback=lambda v: (_print_help(), raise_exit()) if v else None,
|
|
@@ -168,8 +177,7 @@ def _main(ctx: typer.Context,
|
|
|
168
177
|
_print_help()
|
|
169
178
|
raise typer.Exit(0)
|
|
170
179
|
|
|
171
|
-
|
|
172
|
-
raise typer.Exit(0)
|
|
180
|
+
|
|
173
181
|
|
|
174
182
|
def _print_help():
|
|
175
183
|
C, G, Y, DM, RS = _C, _G, _Y, _DM, _RS
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|