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.
Files changed (35) hide show
  1. {wexample_cli-1.0.2 → wexample_cli-1.1.0}/PKG-INFO +2 -2
  2. {wexample_cli-1.0.2 → wexample_cli-1.1.0}/README.md +1 -1
  3. {wexample_cli-1.0.2 → wexample_cli-1.1.0}/pyproject.toml +1 -1
  4. {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/decorator/screenable.py +8 -1
  5. {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/__init__.py +0 -0
  6. {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/command/__init__.py +0 -0
  7. {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/command/extended_command.py +0 -0
  8. {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/common/__init__.py +0 -0
  9. {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/common/command_method_wrapper.py +0 -0
  10. {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/const/__init__.py +0 -0
  11. {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/const/middleware.py +0 -0
  12. {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/const/tags.py +0 -0
  13. {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/const/types.py +0 -0
  14. {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/context/__init__.py +0 -0
  15. {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/context/execution_context.py +0 -0
  16. {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/decorator/__init__.py +0 -0
  17. {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/decorator/alias.py +0 -0
  18. {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/decorator/as_sudo.py +0 -0
  19. {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/decorator/command.py +0 -0
  20. {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/decorator/middleware.py +0 -0
  21. {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/decorator/option.py +0 -0
  22. {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/decorator/option_stop_on_failure.py +0 -0
  23. {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/decorator/webhook.py +0 -0
  24. {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/exception/__init__.py +0 -0
  25. {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/exception/abstract_command_option_exception.py +0 -0
  26. {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/exception/command_option_missing_exception.py +0 -0
  27. {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/exception/command_option_validation_exception.py +0 -0
  28. {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/helpers/__init__.py +0 -0
  29. {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/helpers/extra_args.py +0 -0
  30. {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/middleware/__init__.py +0 -0
  31. {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/middleware/abstract_middleware.py +0 -0
  32. {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/py.typed +0 -0
  33. {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/testing/__init__.py +0 -0
  34. {wexample_cli-1.0.2 → wexample_cli-1.1.0}/src/wexample_cli/testing/kernel.py +0 -0
  35. {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.2
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.2
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
 
@@ -1,6 +1,6 @@
1
1
  # cli
2
2
 
3
- Version: 1.0.2
3
+ Version: 1.1.0
4
4
 
5
5
  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.
6
6
 
@@ -6,7 +6,7 @@ build-backend = "pdm.backend"
6
6
 
7
7
  [project]
8
8
  name = "wexample-cli"
9
- version = "1.0.2"
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)