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.
- {wexample_cli-2.0.2 → wexample_cli-2.1.0}/PKG-INFO +2 -2
- {wexample_cli-2.0.2 → wexample_cli-2.1.0}/README.md +1 -1
- {wexample_cli-2.0.2 → wexample_cli-2.1.0}/pyproject.toml +1 -1
- {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/middleware/abstract_middleware.py +4 -1
- {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/__init__.py +0 -0
- {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/command/__init__.py +0 -0
- {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/command/extended_command.py +0 -0
- {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/common/__init__.py +0 -0
- {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/common/command_method_wrapper.py +0 -0
- {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/const/__init__.py +0 -0
- {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/const/middleware.py +0 -0
- {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/const/tags.py +0 -0
- {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/const/types.py +0 -0
- {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/context/__init__.py +0 -0
- {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/context/execution_context.py +0 -0
- {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/decorator/__init__.py +0 -0
- {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/decorator/alias.py +0 -0
- {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/decorator/as_sudo.py +0 -0
- {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/decorator/command.py +0 -0
- {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/decorator/middleware.py +0 -0
- {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/decorator/option.py +0 -0
- {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/decorator/option_stop_on_failure.py +0 -0
- {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/decorator/screenable.py +0 -0
- {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/decorator/webhook.py +0 -0
- {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/exception/__init__.py +0 -0
- {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/exception/abstract_command_option_exception.py +0 -0
- {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/exception/command_option_missing_exception.py +0 -0
- {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/exception/command_option_validation_exception.py +0 -0
- {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/helper/__init__.py +0 -0
- {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/helper/extra_args.py +0 -0
- {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/middleware/__init__.py +0 -0
- {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/py.typed +0 -0
- {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/testing/__init__.py +0 -0
- {wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/testing/kernel.py +0 -0
- {wexample_cli-2.0.2 → wexample_cli-2.1.0}/tests/__init__.py +0 -0
- {wexample_cli-2.0.2 → wexample_cli-2.1.0}/tests/helper/__init__.py +0 -0
- {wexample_cli-2.0.2 → wexample_cli-2.1.0}/tests/helper/test_extra_args.py +0 -0
- {wexample_cli-2.0.2 → wexample_cli-2.1.0}/tests/unit/__init__.py +0 -0
- {wexample_cli-2.0.2 → wexample_cli-2.1.0}/tests/unit/helper/__init__.py +0 -0
- {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
|
|
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
|
|
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
|
|
|
@@ -6,7 +6,7 @@ build-backend = "pdm.backend"
|
|
|
6
6
|
|
|
7
7
|
[project]
|
|
8
8
|
name = "wexample-cli"
|
|
9
|
-
version = "2.0
|
|
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" },
|
{wexample_cli-2.0.2 → wexample_cli-2.1.0}/src/wexample_cli/middleware/abstract_middleware.py
RENAMED
|
@@ -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=
|
|
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",
|
|
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-2.0.2 → wexample_cli-2.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
|
|
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
|