ivon-cli 0.2.0__tar.gz → 0.2.1__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.
- {ivon_cli-0.2.0/src/ivon_cli.egg-info → ivon_cli-0.2.1}/PKG-INFO +1 -1
- ivon_cli-0.2.1/src/ivon_cli/__init__.py +3 -0
- {ivon_cli-0.2.0 → ivon_cli-0.2.1}/src/ivon_cli/main.py +10 -2
- {ivon_cli-0.2.0 → ivon_cli-0.2.1/src/ivon_cli.egg-info}/PKG-INFO +1 -1
- ivon_cli-0.2.0/src/ivon_cli/__init__.py +0 -3
- {ivon_cli-0.2.0 → ivon_cli-0.2.1}/MANIFEST.in +0 -0
- {ivon_cli-0.2.0 → ivon_cli-0.2.1}/README.md +0 -0
- {ivon_cli-0.2.0 → ivon_cli-0.2.1}/pyproject.toml +0 -0
- {ivon_cli-0.2.0 → ivon_cli-0.2.1}/setup.cfg +0 -0
- {ivon_cli-0.2.0 → ivon_cli-0.2.1}/src/ivon_cli/_tools_snapshot.json +0 -0
- {ivon_cli-0.2.0 → ivon_cli-0.2.1}/src/ivon_cli/api.py +0 -0
- {ivon_cli-0.2.0 → ivon_cli-0.2.1}/src/ivon_cli/cmds/__init__.py +0 -0
- {ivon_cli-0.2.0 → ivon_cli-0.2.1}/src/ivon_cli/cmds/auth.py +0 -0
- {ivon_cli-0.2.0 → ivon_cli-0.2.1}/src/ivon_cli/cmds/install.py +0 -0
- {ivon_cli-0.2.0 → ivon_cli-0.2.1}/src/ivon_cli/cmds/mcp.py +0 -0
- {ivon_cli-0.2.0 → ivon_cli-0.2.1}/src/ivon_cli/cmds/meta.py +0 -0
- {ivon_cli-0.2.0 → ivon_cli-0.2.1}/src/ivon_cli/config.py +0 -0
- {ivon_cli-0.2.0 → ivon_cli-0.2.1}/src/ivon_cli/data/ivon_meta_ads_skill.md +0 -0
- {ivon_cli-0.2.0 → ivon_cli-0.2.1}/src/ivon_cli/exit_codes.py +0 -0
- {ivon_cli-0.2.0 → ivon_cli-0.2.1}/src/ivon_cli.egg-info/SOURCES.txt +0 -0
- {ivon_cli-0.2.0 → ivon_cli-0.2.1}/src/ivon_cli.egg-info/dependency_links.txt +0 -0
- {ivon_cli-0.2.0 → ivon_cli-0.2.1}/src/ivon_cli.egg-info/entry_points.txt +0 -0
- {ivon_cli-0.2.0 → ivon_cli-0.2.1}/src/ivon_cli.egg-info/requires.txt +0 -0
- {ivon_cli-0.2.0 → ivon_cli-0.2.1}/src/ivon_cli.egg-info/top_level.txt +0 -0
|
@@ -4,9 +4,17 @@ from __future__ import annotations
|
|
|
4
4
|
|
|
5
5
|
import sys
|
|
6
6
|
|
|
7
|
-
import click
|
|
8
7
|
import typer
|
|
9
8
|
|
|
9
|
+
# Catch the ClickException typer actually raises: typer ≥0.20 vendors click
|
|
10
|
+
# (typer._click) and drops the standalone `click` dependency; older typer
|
|
11
|
+
# uses the real package. Import from the same place typer does so the
|
|
12
|
+
# class identity matches in both worlds.
|
|
13
|
+
try:
|
|
14
|
+
from typer._click.exceptions import ClickException
|
|
15
|
+
except ImportError: # older typer — real click is guaranteed present
|
|
16
|
+
from click.exceptions import ClickException
|
|
17
|
+
|
|
10
18
|
from . import __version__
|
|
11
19
|
from .api import ApiError, NotLoggedIn, TransportError
|
|
12
20
|
from .cmds import auth as auth_cmds
|
|
@@ -60,7 +68,7 @@ def main() -> int:
|
|
|
60
68
|
return int(result) if isinstance(result, int) else exit_codes.OK
|
|
61
69
|
except typer.Exit as exc:
|
|
62
70
|
return int(exc.exit_code or 0)
|
|
63
|
-
except
|
|
71
|
+
except ClickException as exc:
|
|
64
72
|
# With standalone_mode=False Click re-raises usage errors instead of
|
|
65
73
|
# rendering them — print the usual usage/error message ourselves.
|
|
66
74
|
exc.show()
|
|
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
|