wexample-cli 1.0.2__tar.gz → 1.1.0__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.
- {wexample_cli-1.0.2 → wexample_cli-1.1.0}/PKG-INFO +2 -2
- {wexample_cli-1.0.2 → wexample_cli-1.1.0}/README.md +1 -1
- {wexample_cli-1.0.2 → wexample_cli-1.1.0}/pyproject.toml +1 -1
- {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/decorator/screenable.py +8 -1
- {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/__init__.py +0 -0
- {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/command/__init__.py +0 -0
- {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/command/extended_command.py +0 -0
- {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/common/__init__.py +0 -0
- {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/common/command_method_wrapper.py +0 -0
- {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/const/__init__.py +0 -0
- {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/const/middleware.py +0 -0
- {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/const/tags.py +0 -0
- {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/const/types.py +0 -0
- {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/context/__init__.py +0 -0
- {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/context/execution_context.py +0 -0
- {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/decorator/__init__.py +0 -0
- {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/decorator/alias.py +0 -0
- {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/decorator/as_sudo.py +0 -0
- {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/decorator/command.py +0 -0
- {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/decorator/middleware.py +0 -0
- {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/decorator/option.py +0 -0
- {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/decorator/option_stop_on_failure.py +0 -0
- {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/decorator/webhook.py +0 -0
- {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/exception/__init__.py +0 -0
- {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/exception/abstract_command_option_exception.py +0 -0
- {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/exception/command_option_missing_exception.py +0 -0
- {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/exception/command_option_validation_exception.py +0 -0
- {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/helpers/__init__.py +0 -0
- {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/helpers/extra_args.py +0 -0
- {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/middleware/__init__.py +0 -0
- {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/middleware/abstract_middleware.py +0 -0
- {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/py.typed +0 -0
- {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/testing/__init__.py +0 -0
- {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/testing/kernel.py +0 -0
- {wexample_cli-1.0.2 → wexample_cli-1.1.0}/tests/__init__.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: wexample-cli
|
|
3
|
-
Version: 1.0
|
|
3
|
+
Version: 1.1.0
|
|
4
4
|
Summary: Reusable CLI primitives — command decorators, options, middlewares, and the enriched command runner — extracted from wex-core so any kernel built on wexample-app can opt in without depending on the full wex framework.
|
|
5
5
|
Author-Email: weeger <contact@wexample.com>
|
|
6
6
|
License: MIT
|
|
@@ -20,7 +20,7 @@ Description-Content-Type: text/markdown
|
|
|
20
20
|
|
|
21
21
|
# cli
|
|
22
22
|
|
|
23
|
-
Version: 1.0
|
|
23
|
+
Version: 1.1.0
|
|
24
24
|
|
|
25
25
|
Reusable CLI primitives — command decorators, options, middlewares, and the enriched command runner — extracted from wex-core so any kernel built on wexample-app can opt in without depending on the full wex framework.
|
|
26
26
|
|
|
@@ -6,7 +6,7 @@ build-backend = "pdm.backend"
|
|
|
6
6
|
|
|
7
7
|
[project]
|
|
8
8
|
name = "wexample-cli"
|
|
9
|
-
version = "1.0
|
|
9
|
+
version = "1.1.0"
|
|
10
10
|
description = "Reusable CLI primitives — command decorators, options, middlewares, and the enriched command runner — extracted from wex-core so any kernel built on wexample-app can opt in without depending on the full wex framework."
|
|
11
11
|
authors = [
|
|
12
12
|
{ name = "weeger", email = "contact@wexample.com" },
|
|
@@ -103,10 +103,17 @@ def _build_screen_wrapper(default_interval: float, height: int) -> AnyCallable:
|
|
|
103
103
|
saved_output = kernel_io.output
|
|
104
104
|
kernel_io.output = response.io.output
|
|
105
105
|
try:
|
|
106
|
-
next_dispatch(function_kwargs)
|
|
106
|
+
inner_response = next_dispatch(function_kwargs)
|
|
107
107
|
finally:
|
|
108
108
|
kernel_io.output = saved_output
|
|
109
109
|
|
|
110
|
+
if inner_response is not None:
|
|
111
|
+
formatted = inner_response.get_formatted(
|
|
112
|
+
output_format=request.output_format
|
|
113
|
+
)
|
|
114
|
+
if formatted:
|
|
115
|
+
response.print(formatted)
|
|
116
|
+
|
|
110
117
|
response.reload()
|
|
111
118
|
|
|
112
119
|
kernel_io.screen(callback=_frame, height=height)
|
|
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
|
{wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/decorator/option_stop_on_failure.py
RENAMED
|
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
|
{wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/middleware/abstract_middleware.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|