wexample-cli 2.0.2__tar.gz → 2.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 (40) hide show
  1. {wexample_cli-2.0.2 → wexample_cli-2.1.0}/PKG-INFO +2 -2
  2. {wexample_cli-2.0.2 → wexample_cli-2.1.0}/README.md +1 -1
  3. {wexample_cli-2.0.2 → wexample_cli-2.1.0}/pyproject.toml +1 -1
  4. {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/middleware/abstract_middleware.py +4 -1
  5. {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/__init__.py +0 -0
  6. {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/command/__init__.py +0 -0
  7. {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/command/extended_command.py +0 -0
  8. {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/common/__init__.py +0 -0
  9. {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/common/command_method_wrapper.py +0 -0
  10. {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/const/__init__.py +0 -0
  11. {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/const/middleware.py +0 -0
  12. {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/const/tags.py +0 -0
  13. {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/const/types.py +0 -0
  14. {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/context/__init__.py +0 -0
  15. {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/context/execution_context.py +0 -0
  16. {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/decorator/__init__.py +0 -0
  17. {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/decorator/alias.py +0 -0
  18. {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/decorator/as_sudo.py +0 -0
  19. {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/decorator/command.py +0 -0
  20. {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/decorator/middleware.py +0 -0
  21. {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/decorator/option.py +0 -0
  22. {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/decorator/option_stop_on_failure.py +0 -0
  23. {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/decorator/screenable.py +0 -0
  24. {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/decorator/webhook.py +0 -0
  25. {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/exception/__init__.py +0 -0
  26. {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/exception/abstract_command_option_exception.py +0 -0
  27. {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/exception/command_option_missing_exception.py +0 -0
  28. {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/exception/command_option_validation_exception.py +0 -0
  29. {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/helper/__init__.py +0 -0
  30. {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/helper/extra_args.py +0 -0
  31. {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/middleware/__init__.py +0 -0
  32. {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/py.typed +0 -0
  33. {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/testing/__init__.py +0 -0
  34. {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/testing/kernel.py +0 -0
  35. {wexample_cli-2.0.2 → wexample_cli-2.1.0}/tests/__init__.py +0 -0
  36. {wexample_cli-2.0.2 → wexample_cli-2.1.0}/tests/helper/__init__.py +0 -0
  37. {wexample_cli-2.0.2 → wexample_cli-2.1.0}/tests/helper/test_extra_args.py +0 -0
  38. {wexample_cli-2.0.2 → wexample_cli-2.1.0}/tests/unit/__init__.py +0 -0
  39. {wexample_cli-2.0.2 → wexample_cli-2.1.0}/tests/unit/helper/__init__.py +0 -0
  40. {wexample_cli-2.0.2 → wexample_cli-2.1.0}/tests/unit/helper/test_extra_args.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wexample-cli
3
- Version: 2.0.2
3
+ Version: 2.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: 2.0.2
23
+ Version: 2.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: 2.0.2
3
+ Version: 2.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 = "2.0.2"
9
+ version = "2.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" },
@@ -65,6 +65,9 @@ class AbstractMiddleware(
65
65
  from wexample_app.command.option import Option
66
66
 
67
67
  from wexample_cli.const.middleware import MIDDLEWARE_OPTION_VALUE_OPTIONAL
68
+ from wexample_cli.decorator.option_stop_on_failure import (
69
+ OPTION_NAME_STOP_ON_FAILURE,
70
+ )
68
71
 
69
72
  if self.parallel:
70
73
  self.stop_on_failure = False
@@ -99,7 +102,7 @@ class AbstractMiddleware(
99
102
  if self.stop_on_failure == MIDDLEWARE_OPTION_VALUE_OPTIONAL:
100
103
  command_wrapper.set_option(
101
104
  Option(
102
- name="stop-on-failure",
105
+ name=OPTION_NAME_STOP_ON_FAILURE,
103
106
  short_name="sof",
104
107
  type=bool,
105
108
  description="Stop at first failure response if not async",