lib-cli-exit-tools 2.2.0__tar.gz → 2.2.2__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.
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/.github/workflows/ci.yml +10 -10
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/CHANGELOG.md +19 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/PKG-INFO +74 -25
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/README.md +70 -21
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/pyproject.toml +4 -4
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/scripts/_utils.py +4 -38
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/scripts/toml_config.py +3 -25
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/src/lib_cli_exit_tools/__init__conf__.py +1 -1
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/tests/test_metadata.py +3 -9
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/.codacy/cli-config.yaml +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/.codacy/cli.sh +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/.codacy/codacy.yaml +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/.codacy/tools-configs/lizard.yaml +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/.codacy/tools-configs/trivy.yaml +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/.devcontainer/devcontainer.json +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/.devcontainer/settings.json +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/.env.example +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/.github/dependabot.yml +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/.github/workflows/codeql.yml +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/.github/workflows/release.yml +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/.gitignore +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/.qlty/qlty.toml +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/.snyk +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/AGENTS.md +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/AGENTS_README.md +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/CONTRIBUTING.md +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/DEVELOPMENT.md +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/INSTALL.md +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/LICENSE +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/Makefile +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/codecov.yml +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/docs/system-design/module_reference.md +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/notebooks/Quickstart.ipynb +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/scripts/__init__.py +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/scripts/__main__.py +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/scripts/build.py +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/scripts/bump.py +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/scripts/bump_major.py +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/scripts/bump_minor.py +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/scripts/bump_patch.py +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/scripts/bump_version.py +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/scripts/clean.py +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/scripts/cli.py +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/scripts/dependencies.py +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/scripts/dev.py +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/scripts/help.py +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/scripts/install.py +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/scripts/menu.py +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/scripts/push.py +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/scripts/release.py +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/scripts/run_cli.py +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/scripts/target_metadata.py +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/scripts/test.py +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/scripts/version_current.py +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/src/lib_cli_exit_tools/__init__.py +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/src/lib_cli_exit_tools/__main__.py +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/src/lib_cli_exit_tools/adapters/__init__.py +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/src/lib_cli_exit_tools/adapters/signals.py +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/src/lib_cli_exit_tools/application/__init__.py +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/src/lib_cli_exit_tools/application/runner.py +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/src/lib_cli_exit_tools/cli.py +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/src/lib_cli_exit_tools/core/__init__.py +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/src/lib_cli_exit_tools/core/configuration.py +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/src/lib_cli_exit_tools/core/exit_codes.py +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/src/lib_cli_exit_tools/lib_cli_exit_tools.py +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/src/lib_cli_exit_tools/py.typed +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/tests/conftest.py +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/tests/test_adapters_signals.py +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/tests/test_application_runner.py +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/tests/test_behaviors.py +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/tests/test_cli.py +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/tests/test_core_configuration.py +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/tests/test_core_exit_codes.py +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/tests/test_module_entry.py +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/tests/test_scripts.py +0 -0
- {lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/tests/test_signals_integration.py +0 -0
|
@@ -33,18 +33,18 @@ jobs:
|
|
|
33
33
|
uses: astral-sh/setup-uv@v7
|
|
34
34
|
with:
|
|
35
35
|
enable-cache: true
|
|
36
|
+
- name: Install rtoml
|
|
37
|
+
shell: bash
|
|
38
|
+
run: python -m pip install rtoml
|
|
36
39
|
- name: Extract project metadata
|
|
37
40
|
shell: python
|
|
38
41
|
run: |
|
|
39
42
|
import os
|
|
40
43
|
from pathlib import Path
|
|
41
44
|
|
|
42
|
-
|
|
43
|
-
import tomllib
|
|
44
|
-
except ModuleNotFoundError:
|
|
45
|
-
import pip._vendor.tomli as tomllib
|
|
45
|
+
import rtoml
|
|
46
46
|
|
|
47
|
-
data =
|
|
47
|
+
data = rtoml.loads(Path('pyproject.toml').read_text('utf-8'))
|
|
48
48
|
project = data['project']['name']
|
|
49
49
|
module = project.replace('-', '_')
|
|
50
50
|
dash = project.replace('_', '-')
|
|
@@ -123,18 +123,18 @@ jobs:
|
|
|
123
123
|
python-version: "3.13"
|
|
124
124
|
cache: 'pip'
|
|
125
125
|
cache-dependency-path: 'pyproject.toml'
|
|
126
|
+
- name: Install rtoml
|
|
127
|
+
shell: bash
|
|
128
|
+
run: python -m pip install rtoml
|
|
126
129
|
- name: Extract project metadata
|
|
127
130
|
shell: python
|
|
128
131
|
run: |
|
|
129
132
|
import os
|
|
130
133
|
from pathlib import Path
|
|
131
134
|
|
|
132
|
-
|
|
133
|
-
import tomllib
|
|
134
|
-
except ModuleNotFoundError:
|
|
135
|
-
import pip._vendor.tomli as tomllib
|
|
135
|
+
import rtoml
|
|
136
136
|
|
|
137
|
-
data =
|
|
137
|
+
data = rtoml.loads(Path('pyproject.toml').read_text('utf-8'))
|
|
138
138
|
project = data['project']['name']
|
|
139
139
|
module = project.replace('-', '_')
|
|
140
140
|
dash = project.replace('_', '-')
|
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project are documented here. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
4
4
|
|
|
5
5
|
|
|
6
|
+
## [2.2.2] - 2025-12-12
|
|
7
|
+
|
|
8
|
+
### Changed
|
|
9
|
+
- Replaced `tomllib`/`tomli` with `rtoml` for TOML parsing across the entire codebase and CI/CD pipelines. This provides a single, fast Rust-based implementation without version-conditional imports.
|
|
10
|
+
|
|
11
|
+
## [2.2.1] - 2025-12-11
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
- "Why lib_cli_exit_tools?" section in README highlighting five key benefits: correct exit codes, portable signal handling, clean error output, pipeline-friendly behaviour, and zero boilerplate.
|
|
15
|
+
- CLI Reference section in README with global options table and command descriptions.
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
- Replaced all `--verbose` references in README examples with `--traceback` to match actual CLI option.
|
|
19
|
+
- Updated `cli_session` documentation to include missing `restore` parameter.
|
|
20
|
+
- Converted config field reference to table format with types and defaults.
|
|
21
|
+
|
|
22
|
+
### Fixed
|
|
23
|
+
- Added missing `traceback_force_color` configuration field to documentation.
|
|
24
|
+
|
|
6
25
|
## [2.2.0] - 2025-12-11
|
|
7
26
|
|
|
8
27
|
### Changed
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: lib_cli_exit_tools
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.2
|
|
4
4
|
Summary: CLI exit handling helpers: clean signals, exit codes, and error printing
|
|
5
5
|
Project-URL: Homepage, https://github.com/bitranox/lib_cli_exit_tools
|
|
6
6
|
Project-URL: Repository, https://github.com/bitranox/lib_cli_exit_tools.git
|
|
@@ -23,15 +23,15 @@ Requires-Dist: build>=1.3.0; extra == 'dev'
|
|
|
23
23
|
Requires-Dist: codecov-cli>=11.2.6; extra == 'dev'
|
|
24
24
|
Requires-Dist: coverage[toml]>=7.13.0; extra == 'dev'
|
|
25
25
|
Requires-Dist: hypothesis>=6.148.7; extra == 'dev'
|
|
26
|
-
Requires-Dist: import-linter>=2.
|
|
26
|
+
Requires-Dist: import-linter>=2.9; extra == 'dev'
|
|
27
27
|
Requires-Dist: pip-audit>=2.10.0; extra == 'dev'
|
|
28
28
|
Requires-Dist: pyright>=1.1.407; extra == 'dev'
|
|
29
29
|
Requires-Dist: pytest-asyncio>=1.3.0; extra == 'dev'
|
|
30
30
|
Requires-Dist: pytest-cov>=7.0.0; extra == 'dev'
|
|
31
31
|
Requires-Dist: pytest>=9.0.2; extra == 'dev'
|
|
32
|
-
Requires-Dist:
|
|
32
|
+
Requires-Dist: rtoml>=0.13.0; extra == 'dev'
|
|
33
|
+
Requires-Dist: ruff>=0.14.9; extra == 'dev'
|
|
33
34
|
Requires-Dist: textual>=6.8.0; extra == 'dev'
|
|
34
|
-
Requires-Dist: tomli>=2.3.0; (python_version < '3.11') and extra == 'dev'
|
|
35
35
|
Requires-Dist: twine>=6.2.0; extra == 'dev'
|
|
36
36
|
Description-Content-Type: text/markdown
|
|
37
37
|
|
|
@@ -55,6 +55,20 @@ Small helpers for robust CLI exit handling:
|
|
|
55
55
|
- Consistent exception → exit code mapping
|
|
56
56
|
- Concise error printing with optional traceback and subprocess stdout/stderr capture
|
|
57
57
|
|
|
58
|
+
## Why lib_cli_exit_tools?
|
|
59
|
+
|
|
60
|
+
Building CLI applications that behave correctly in shell pipelines, CI/CD systems, and across platforms is surprisingly tricky. This library solves five common pain points:
|
|
61
|
+
|
|
62
|
+
1. **Correct Exit Codes** — Exceptions are automatically mapped to platform-appropriate exit codes (POSIX errno or BSD sysexits). `FileNotFoundError` returns `2`, `PermissionError` returns `13` on POSIX, and `KeyboardInterrupt` returns `130` — matching shell conventions without manual bookkeeping.
|
|
63
|
+
|
|
64
|
+
2. **Portable Signal Handling** — SIGINT (Ctrl+C), SIGTERM, and Windows SIGBREAK are translated into structured Python exceptions with deterministic exit codes. Your CLI behaves consistently whether terminated by a user, a process manager, or a CI runner.
|
|
65
|
+
|
|
66
|
+
3. **Clean Error Output** — Uncaught exceptions produce concise, coloured error messages by default. Toggle `--traceback` for full Rich-formatted stack traces during debugging — no code changes required.
|
|
67
|
+
|
|
68
|
+
4. **Pipeline-Friendly** — `BrokenPipeError` is handled gracefully (exit 141 by default, matching `128 + SIGPIPE`), so piping output to `head` or other truncating tools doesn't produce noisy tracebacks.
|
|
69
|
+
|
|
70
|
+
5. **Zero Boilerplate** — Wrap any Click command with `run_cli()` and get signal handling, exit-code translation, and stream flushing in one call. Configuration is centralised and test-friendly via context managers.
|
|
71
|
+
|
|
58
72
|
## Install
|
|
59
73
|
|
|
60
74
|
Requires Python 3.10 or newer.
|
|
@@ -77,6 +91,35 @@ lib-cli-exit-tools fail # intentionally trigger RuntimeError to test error path
|
|
|
77
91
|
# Aliases are also generated: `cli-exit-tools`, `lib_cli_exit_tools`
|
|
78
92
|
```
|
|
79
93
|
|
|
94
|
+
## CLI Reference
|
|
95
|
+
|
|
96
|
+
The library installs three equivalent console scripts: `lib-cli-exit-tools` (primary), `cli-exit-tools`, and `lib_cli_exit_tools`. All invoke `lib_cli_exit_tools.cli:main`.
|
|
97
|
+
|
|
98
|
+
### Global Options
|
|
99
|
+
|
|
100
|
+
| Option | Default | Description |
|
|
101
|
+
|--------|---------|-------------|
|
|
102
|
+
| `--traceback` / `--no-traceback` | `False` | Show full Python traceback on errors |
|
|
103
|
+
| `--version` | — | Show program version and exit |
|
|
104
|
+
| `-h`, `--help` | — | Show help message and exit |
|
|
105
|
+
|
|
106
|
+
### Commands
|
|
107
|
+
|
|
108
|
+
#### `info`
|
|
109
|
+
Display package metadata (name, version, homepage, author).
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
lib-cli-exit-tools info
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
#### `fail`
|
|
116
|
+
Intentionally raise `RuntimeError('i should fail')` to validate error handling paths.
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
lib-cli-exit-tools fail
|
|
120
|
+
lib-cli-exit-tools --traceback fail # show full traceback
|
|
121
|
+
```
|
|
122
|
+
|
|
80
123
|
### Examples
|
|
81
124
|
|
|
82
125
|
The snippets below move from a minimal “hello world” through a production-ready
|
|
@@ -109,7 +152,7 @@ Run it with:
|
|
|
109
152
|
python hello.py
|
|
110
153
|
```
|
|
111
154
|
|
|
112
|
-
#### 2.
|
|
155
|
+
#### 2. Traceback-mode helper using `cli_session`
|
|
113
156
|
|
|
114
157
|
```python
|
|
115
158
|
from __future__ import annotations
|
|
@@ -120,22 +163,22 @@ from lib_cli_exit_tools import cli_session, run_cli
|
|
|
120
163
|
|
|
121
164
|
|
|
122
165
|
@click.command()
|
|
123
|
-
@click.option("--
|
|
124
|
-
def cli(
|
|
125
|
-
with cli_session(overrides={"traceback":
|
|
166
|
+
@click.option("--traceback", is_flag=True, help="Show full tracebacks on error")
|
|
167
|
+
def cli(traceback: bool) -> int:
|
|
168
|
+
with cli_session(overrides={"traceback": traceback}) as execute:
|
|
126
169
|
return execute(failable, argv=[])
|
|
127
170
|
|
|
128
171
|
|
|
129
172
|
@click.command()
|
|
130
173
|
def failable() -> None:
|
|
131
|
-
raise RuntimeError("toggle --
|
|
174
|
+
raise RuntimeError("toggle --traceback to see the full traceback")
|
|
132
175
|
|
|
133
176
|
|
|
134
177
|
if __name__ == "__main__":
|
|
135
178
|
raise SystemExit(run_cli(cli))
|
|
136
179
|
```
|
|
137
180
|
|
|
138
|
-
Invoking `python cli.py --
|
|
181
|
+
Invoking `python cli.py --traceback` enables coloured tracebacks just for that
|
|
139
182
|
run and resets the configuration afterwards.
|
|
140
183
|
|
|
141
184
|
#### 3. Full-featured multi-command CLI
|
|
@@ -154,21 +197,21 @@ from lib_cli_exit_tools import SignalSpec, cli_session, default_signal_specs
|
|
|
154
197
|
@dataclass(slots=True)
|
|
155
198
|
class Settings:
|
|
156
199
|
pretty: bool
|
|
157
|
-
|
|
200
|
+
traceback: bool
|
|
158
201
|
|
|
159
202
|
|
|
160
203
|
@click.group()
|
|
161
204
|
@click.option("--pretty/--no-pretty", default=True)
|
|
162
|
-
@click.option("--
|
|
205
|
+
@click.option("--traceback", is_flag=True, help="Show full tracebacks on error")
|
|
163
206
|
@click.pass_context
|
|
164
|
-
def cli(ctx: click.Context, pretty: bool,
|
|
165
|
-
ctx.obj = Settings(pretty=pretty,
|
|
207
|
+
def cli(ctx: click.Context, pretty: bool, traceback: bool) -> None:
|
|
208
|
+
ctx.obj = Settings(pretty=pretty, traceback=traceback)
|
|
166
209
|
|
|
167
210
|
|
|
168
211
|
@cli.command()
|
|
169
212
|
@click.pass_obj
|
|
170
213
|
def info(settings: Settings) -> None:
|
|
171
|
-
payload = {"
|
|
214
|
+
payload = {"traceback": settings.traceback, "pretty": settings.pretty}
|
|
172
215
|
click.echo(json.dumps(payload, indent=2 if settings.pretty else None))
|
|
173
216
|
|
|
174
217
|
|
|
@@ -308,9 +351,12 @@ config.broken_pipe_exit_code = 0 # treat BrokenPipeError as a benign truncat
|
|
|
308
351
|
|
|
309
352
|
Field reference:
|
|
310
353
|
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
354
|
+
| Field | Type | Default | Description |
|
|
355
|
+
|-------|------|---------|-------------|
|
|
356
|
+
| `traceback` | `bool` | `False` | When `True`, `handle_cli_exception` renders a full Rich traceback to stderr. The bundled CLI toggles this via `--traceback/--no-traceback`. |
|
|
357
|
+
| `exit_code_style` | `"errno"` \| `"sysexits"` | `"errno"` | Controls exit code mapping. `errno` returns POSIX/Windows-style codes; `sysexits` returns BSD-style semantic codes (EX_USAGE, EX_NOINPUT, etc.). |
|
|
358
|
+
| `broken_pipe_exit_code` | `int` | `141` | Exit status for `BrokenPipeError` (default mirrors `128 + SIGPIPE`). Set to `0` to treat truncation as success. |
|
|
359
|
+
| `traceback_force_color` | `bool` | `False` | Force Rich to emit ANSI-coloured tracebacks even when stderr is not a TTY. Useful for CI logs. |
|
|
314
360
|
|
|
315
361
|
Remember that `config` is module-level—if you call the library from multiple threads or embed it in another CLI, configure it once during bootstrap before handing control to user code. When you need temporary overrides (for tests or nested CLIs), wrap the change with the built-in context manager so state is restored automatically:
|
|
316
362
|
|
|
@@ -397,22 +443,25 @@ Parameters:
|
|
|
397
443
|
- `exception_handler`: Callable receiving the raised exception and returning an exit code; defaults to ``handle_cli_exception``.
|
|
398
444
|
- `signal_installer`: Callable mirroring ``install_signal_handlers`` for embedding scenarios.
|
|
399
445
|
|
|
400
|
-
### `cli_session(*, summary_limit=500, verbose_limit=10_000, overrides=None)`
|
|
401
|
-
Context manager that snapshots
|
|
446
|
+
### `cli_session(*, summary_limit=500, verbose_limit=10_000, overrides=None, restore=True)`
|
|
447
|
+
Context manager that snapshots `lib_cli_exit_tools.config`, optionally
|
|
402
448
|
applies temporary overrides, and yields a callable compatible with
|
|
403
|
-
|
|
449
|
+
`run_cli`.
|
|
404
450
|
|
|
405
451
|
Parameters:
|
|
406
|
-
- `summary_limit
|
|
407
|
-
- `verbose_limit
|
|
408
|
-
- `overrides
|
|
452
|
+
- `summary_limit` (`int`, default `500`): Character budget when tracebacks are disabled.
|
|
453
|
+
- `verbose_limit` (`int`, default `10_000`): Character budget when tracebacks are enabled.
|
|
454
|
+
- `overrides` (`Mapping[str, object] | None`, default `None`): Mapping of configuration field/value pairs applied during the session. When `traceback` is supplied and `traceback_force_color` is omitted, colour output is automatically forced.
|
|
455
|
+
- `restore` (`bool`, default `True`): When `True`, configuration state is restored after the session. Set to `False` to leave overrides in place once the context exits.
|
|
409
456
|
|
|
410
457
|
Use it to restore configuration automatically—even when the wrapped command
|
|
411
458
|
raises:
|
|
412
459
|
|
|
413
460
|
```python
|
|
461
|
+
from lib_cli_exit_tools import cli_session
|
|
462
|
+
|
|
414
463
|
with cli_session(overrides={"traceback": True}) as run:
|
|
415
|
-
exit_code = run(
|
|
464
|
+
exit_code = run(my_click_command, argv=["--help"])
|
|
416
465
|
```
|
|
417
466
|
|
|
418
467
|
### `handle_cli_exception(exc, *, signal_specs=None, echo=None) -> int`
|
|
@@ -18,6 +18,20 @@ Small helpers for robust CLI exit handling:
|
|
|
18
18
|
- Consistent exception → exit code mapping
|
|
19
19
|
- Concise error printing with optional traceback and subprocess stdout/stderr capture
|
|
20
20
|
|
|
21
|
+
## Why lib_cli_exit_tools?
|
|
22
|
+
|
|
23
|
+
Building CLI applications that behave correctly in shell pipelines, CI/CD systems, and across platforms is surprisingly tricky. This library solves five common pain points:
|
|
24
|
+
|
|
25
|
+
1. **Correct Exit Codes** — Exceptions are automatically mapped to platform-appropriate exit codes (POSIX errno or BSD sysexits). `FileNotFoundError` returns `2`, `PermissionError` returns `13` on POSIX, and `KeyboardInterrupt` returns `130` — matching shell conventions without manual bookkeeping.
|
|
26
|
+
|
|
27
|
+
2. **Portable Signal Handling** — SIGINT (Ctrl+C), SIGTERM, and Windows SIGBREAK are translated into structured Python exceptions with deterministic exit codes. Your CLI behaves consistently whether terminated by a user, a process manager, or a CI runner.
|
|
28
|
+
|
|
29
|
+
3. **Clean Error Output** — Uncaught exceptions produce concise, coloured error messages by default. Toggle `--traceback` for full Rich-formatted stack traces during debugging — no code changes required.
|
|
30
|
+
|
|
31
|
+
4. **Pipeline-Friendly** — `BrokenPipeError` is handled gracefully (exit 141 by default, matching `128 + SIGPIPE`), so piping output to `head` or other truncating tools doesn't produce noisy tracebacks.
|
|
32
|
+
|
|
33
|
+
5. **Zero Boilerplate** — Wrap any Click command with `run_cli()` and get signal handling, exit-code translation, and stream flushing in one call. Configuration is centralised and test-friendly via context managers.
|
|
34
|
+
|
|
21
35
|
## Install
|
|
22
36
|
|
|
23
37
|
Requires Python 3.10 or newer.
|
|
@@ -40,6 +54,35 @@ lib-cli-exit-tools fail # intentionally trigger RuntimeError to test error path
|
|
|
40
54
|
# Aliases are also generated: `cli-exit-tools`, `lib_cli_exit_tools`
|
|
41
55
|
```
|
|
42
56
|
|
|
57
|
+
## CLI Reference
|
|
58
|
+
|
|
59
|
+
The library installs three equivalent console scripts: `lib-cli-exit-tools` (primary), `cli-exit-tools`, and `lib_cli_exit_tools`. All invoke `lib_cli_exit_tools.cli:main`.
|
|
60
|
+
|
|
61
|
+
### Global Options
|
|
62
|
+
|
|
63
|
+
| Option | Default | Description |
|
|
64
|
+
|--------|---------|-------------|
|
|
65
|
+
| `--traceback` / `--no-traceback` | `False` | Show full Python traceback on errors |
|
|
66
|
+
| `--version` | — | Show program version and exit |
|
|
67
|
+
| `-h`, `--help` | — | Show help message and exit |
|
|
68
|
+
|
|
69
|
+
### Commands
|
|
70
|
+
|
|
71
|
+
#### `info`
|
|
72
|
+
Display package metadata (name, version, homepage, author).
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
lib-cli-exit-tools info
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
#### `fail`
|
|
79
|
+
Intentionally raise `RuntimeError('i should fail')` to validate error handling paths.
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
lib-cli-exit-tools fail
|
|
83
|
+
lib-cli-exit-tools --traceback fail # show full traceback
|
|
84
|
+
```
|
|
85
|
+
|
|
43
86
|
### Examples
|
|
44
87
|
|
|
45
88
|
The snippets below move from a minimal “hello world” through a production-ready
|
|
@@ -72,7 +115,7 @@ Run it with:
|
|
|
72
115
|
python hello.py
|
|
73
116
|
```
|
|
74
117
|
|
|
75
|
-
#### 2.
|
|
118
|
+
#### 2. Traceback-mode helper using `cli_session`
|
|
76
119
|
|
|
77
120
|
```python
|
|
78
121
|
from __future__ import annotations
|
|
@@ -83,22 +126,22 @@ from lib_cli_exit_tools import cli_session, run_cli
|
|
|
83
126
|
|
|
84
127
|
|
|
85
128
|
@click.command()
|
|
86
|
-
@click.option("--
|
|
87
|
-
def cli(
|
|
88
|
-
with cli_session(overrides={"traceback":
|
|
129
|
+
@click.option("--traceback", is_flag=True, help="Show full tracebacks on error")
|
|
130
|
+
def cli(traceback: bool) -> int:
|
|
131
|
+
with cli_session(overrides={"traceback": traceback}) as execute:
|
|
89
132
|
return execute(failable, argv=[])
|
|
90
133
|
|
|
91
134
|
|
|
92
135
|
@click.command()
|
|
93
136
|
def failable() -> None:
|
|
94
|
-
raise RuntimeError("toggle --
|
|
137
|
+
raise RuntimeError("toggle --traceback to see the full traceback")
|
|
95
138
|
|
|
96
139
|
|
|
97
140
|
if __name__ == "__main__":
|
|
98
141
|
raise SystemExit(run_cli(cli))
|
|
99
142
|
```
|
|
100
143
|
|
|
101
|
-
Invoking `python cli.py --
|
|
144
|
+
Invoking `python cli.py --traceback` enables coloured tracebacks just for that
|
|
102
145
|
run and resets the configuration afterwards.
|
|
103
146
|
|
|
104
147
|
#### 3. Full-featured multi-command CLI
|
|
@@ -117,21 +160,21 @@ from lib_cli_exit_tools import SignalSpec, cli_session, default_signal_specs
|
|
|
117
160
|
@dataclass(slots=True)
|
|
118
161
|
class Settings:
|
|
119
162
|
pretty: bool
|
|
120
|
-
|
|
163
|
+
traceback: bool
|
|
121
164
|
|
|
122
165
|
|
|
123
166
|
@click.group()
|
|
124
167
|
@click.option("--pretty/--no-pretty", default=True)
|
|
125
|
-
@click.option("--
|
|
168
|
+
@click.option("--traceback", is_flag=True, help="Show full tracebacks on error")
|
|
126
169
|
@click.pass_context
|
|
127
|
-
def cli(ctx: click.Context, pretty: bool,
|
|
128
|
-
ctx.obj = Settings(pretty=pretty,
|
|
170
|
+
def cli(ctx: click.Context, pretty: bool, traceback: bool) -> None:
|
|
171
|
+
ctx.obj = Settings(pretty=pretty, traceback=traceback)
|
|
129
172
|
|
|
130
173
|
|
|
131
174
|
@cli.command()
|
|
132
175
|
@click.pass_obj
|
|
133
176
|
def info(settings: Settings) -> None:
|
|
134
|
-
payload = {"
|
|
177
|
+
payload = {"traceback": settings.traceback, "pretty": settings.pretty}
|
|
135
178
|
click.echo(json.dumps(payload, indent=2 if settings.pretty else None))
|
|
136
179
|
|
|
137
180
|
|
|
@@ -271,9 +314,12 @@ config.broken_pipe_exit_code = 0 # treat BrokenPipeError as a benign truncat
|
|
|
271
314
|
|
|
272
315
|
Field reference:
|
|
273
316
|
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
317
|
+
| Field | Type | Default | Description |
|
|
318
|
+
|-------|------|---------|-------------|
|
|
319
|
+
| `traceback` | `bool` | `False` | When `True`, `handle_cli_exception` renders a full Rich traceback to stderr. The bundled CLI toggles this via `--traceback/--no-traceback`. |
|
|
320
|
+
| `exit_code_style` | `"errno"` \| `"sysexits"` | `"errno"` | Controls exit code mapping. `errno` returns POSIX/Windows-style codes; `sysexits` returns BSD-style semantic codes (EX_USAGE, EX_NOINPUT, etc.). |
|
|
321
|
+
| `broken_pipe_exit_code` | `int` | `141` | Exit status for `BrokenPipeError` (default mirrors `128 + SIGPIPE`). Set to `0` to treat truncation as success. |
|
|
322
|
+
| `traceback_force_color` | `bool` | `False` | Force Rich to emit ANSI-coloured tracebacks even when stderr is not a TTY. Useful for CI logs. |
|
|
277
323
|
|
|
278
324
|
Remember that `config` is module-level—if you call the library from multiple threads or embed it in another CLI, configure it once during bootstrap before handing control to user code. When you need temporary overrides (for tests or nested CLIs), wrap the change with the built-in context manager so state is restored automatically:
|
|
279
325
|
|
|
@@ -360,22 +406,25 @@ Parameters:
|
|
|
360
406
|
- `exception_handler`: Callable receiving the raised exception and returning an exit code; defaults to ``handle_cli_exception``.
|
|
361
407
|
- `signal_installer`: Callable mirroring ``install_signal_handlers`` for embedding scenarios.
|
|
362
408
|
|
|
363
|
-
### `cli_session(*, summary_limit=500, verbose_limit=10_000, overrides=None)`
|
|
364
|
-
Context manager that snapshots
|
|
409
|
+
### `cli_session(*, summary_limit=500, verbose_limit=10_000, overrides=None, restore=True)`
|
|
410
|
+
Context manager that snapshots `lib_cli_exit_tools.config`, optionally
|
|
365
411
|
applies temporary overrides, and yields a callable compatible with
|
|
366
|
-
|
|
412
|
+
`run_cli`.
|
|
367
413
|
|
|
368
414
|
Parameters:
|
|
369
|
-
- `summary_limit
|
|
370
|
-
- `verbose_limit
|
|
371
|
-
- `overrides
|
|
415
|
+
- `summary_limit` (`int`, default `500`): Character budget when tracebacks are disabled.
|
|
416
|
+
- `verbose_limit` (`int`, default `10_000`): Character budget when tracebacks are enabled.
|
|
417
|
+
- `overrides` (`Mapping[str, object] | None`, default `None`): Mapping of configuration field/value pairs applied during the session. When `traceback` is supplied and `traceback_force_color` is omitted, colour output is automatically forced.
|
|
418
|
+
- `restore` (`bool`, default `True`): When `True`, configuration state is restored after the session. Set to `False` to leave overrides in place once the context exits.
|
|
372
419
|
|
|
373
420
|
Use it to restore configuration automatically—even when the wrapped command
|
|
374
421
|
raises:
|
|
375
422
|
|
|
376
423
|
```python
|
|
424
|
+
from lib_cli_exit_tools import cli_session
|
|
425
|
+
|
|
377
426
|
with cli_session(overrides={"traceback": True}) as run:
|
|
378
|
-
exit_code = run(
|
|
427
|
+
exit_code = run(my_click_command, argv=["--help"])
|
|
379
428
|
```
|
|
380
429
|
|
|
381
430
|
### `handle_cli_exception(exc, *, signal_specs=None, echo=None) -> int`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "lib_cli_exit_tools"
|
|
3
|
-
version = "2.2.
|
|
3
|
+
version = "2.2.2"
|
|
4
4
|
description = "CLI exit handling helpers: clean signals, exit codes, and error printing"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.10"
|
|
@@ -28,16 +28,16 @@ dev = [
|
|
|
28
28
|
"codecov-cli>=11.2.6",
|
|
29
29
|
"coverage[toml]>=7.13.0",
|
|
30
30
|
"hypothesis>=6.148.7",
|
|
31
|
-
"import-linter>=2.
|
|
31
|
+
"import-linter>=2.9",
|
|
32
32
|
"bandit>=1.9.2",
|
|
33
33
|
"pip-audit>=2.10.0",
|
|
34
34
|
"pyright>=1.1.407",
|
|
35
35
|
"pytest>=9.0.2",
|
|
36
36
|
"pytest-asyncio>=1.3.0",
|
|
37
37
|
"pytest-cov>=7.0.0",
|
|
38
|
-
"ruff>=0.14.
|
|
38
|
+
"ruff>=0.14.9",
|
|
39
39
|
"textual>=6.8.0",
|
|
40
|
-
"
|
|
40
|
+
"rtoml>=0.13.0",
|
|
41
41
|
"twine>=6.2.0"
|
|
42
42
|
]
|
|
43
43
|
|
|
@@ -35,6 +35,8 @@ from subprocess import CompletedProcess
|
|
|
35
35
|
from typing import Any, Mapping, Sequence, cast
|
|
36
36
|
from urllib.parse import urlparse
|
|
37
37
|
|
|
38
|
+
import rtoml
|
|
39
|
+
|
|
38
40
|
|
|
39
41
|
@dataclass
|
|
40
42
|
class RunResult:
|
|
@@ -118,41 +120,6 @@ class ProjectMetadata:
|
|
|
118
120
|
|
|
119
121
|
_PYPROJECT_DATA_CACHE: dict[Path, dict[str, object]] = {}
|
|
120
122
|
_METADATA_CACHE: dict[Path, ProjectMetadata] = {}
|
|
121
|
-
_toml_module: Any = None
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
def _get_toml_module() -> Any:
|
|
125
|
-
"""Return tomllib (Python 3.11+) or tomli backport (Python 3.9-3.10).
|
|
126
|
-
|
|
127
|
-
Purpose
|
|
128
|
-
-------
|
|
129
|
-
Ensure TOML parsing works across Python 3.9+ by using the standard
|
|
130
|
-
library tomllib on 3.11+ and falling back to the tomli package
|
|
131
|
-
on earlier versions.
|
|
132
|
-
|
|
133
|
-
Returns
|
|
134
|
-
-------
|
|
135
|
-
module
|
|
136
|
-
Either tomllib or tomli with identical interfaces.
|
|
137
|
-
|
|
138
|
-
Raises
|
|
139
|
-
------
|
|
140
|
-
ModuleNotFoundError
|
|
141
|
-
If neither tomllib nor tomli can be imported.
|
|
142
|
-
"""
|
|
143
|
-
global _toml_module
|
|
144
|
-
if _toml_module is not None:
|
|
145
|
-
return _toml_module
|
|
146
|
-
|
|
147
|
-
# Use tomllib (Python 3.11+) or tomli backport (Python 3.9-3.10)
|
|
148
|
-
# Both have the same interface, so we can treat them interchangeably
|
|
149
|
-
try:
|
|
150
|
-
import tomllib as module # type: ignore[import-not-found]
|
|
151
|
-
except ModuleNotFoundError:
|
|
152
|
-
import tomli as module # type: ignore[import-not-found,no-redef]
|
|
153
|
-
|
|
154
|
-
_toml_module = module
|
|
155
|
-
return module
|
|
156
123
|
|
|
157
124
|
|
|
158
125
|
def run(
|
|
@@ -250,10 +217,9 @@ def _load_pyproject(pyproject: Path) -> dict[str, object]:
|
|
|
250
217
|
if cached is not None:
|
|
251
218
|
return cached
|
|
252
219
|
raw_text = path.read_text(encoding="utf-8")
|
|
253
|
-
toml_module = _get_toml_module()
|
|
254
220
|
try:
|
|
255
|
-
parsed_obj =
|
|
256
|
-
except
|
|
221
|
+
parsed_obj = rtoml.loads(raw_text)
|
|
222
|
+
except rtoml.TomlParsingError as exc: # pragma: no cover - invalid pyproject fails fast
|
|
257
223
|
msg = f"Unable to parse {path}: {exc}"
|
|
258
224
|
raise ValueError(msg) from exc
|
|
259
225
|
data = {str(key): value for key, value in parsed_obj.items()}
|
|
@@ -8,9 +8,10 @@ from __future__ import annotations
|
|
|
8
8
|
|
|
9
9
|
from dataclasses import dataclass, field
|
|
10
10
|
from pathlib import Path
|
|
11
|
-
from types import ModuleType
|
|
12
11
|
from typing import Any, cast
|
|
13
12
|
|
|
13
|
+
import rtoml
|
|
14
|
+
|
|
14
15
|
__all__ = [
|
|
15
16
|
"CleanConfig",
|
|
16
17
|
"CoverageReportConfig",
|
|
@@ -25,28 +26,6 @@ __all__ = [
|
|
|
25
26
|
]
|
|
26
27
|
|
|
27
28
|
|
|
28
|
-
# ---------------------------------------------------------------------------
|
|
29
|
-
# TOML Module Loading
|
|
30
|
-
# ---------------------------------------------------------------------------
|
|
31
|
-
|
|
32
|
-
_toml_module: ModuleType | None = None
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
def _get_toml_module() -> ModuleType:
|
|
36
|
-
"""Return the TOML parsing module (tomllib or tomli fallback)."""
|
|
37
|
-
global _toml_module
|
|
38
|
-
if _toml_module is not None:
|
|
39
|
-
return _toml_module
|
|
40
|
-
|
|
41
|
-
try:
|
|
42
|
-
import tomllib as module # type: ignore[import-not-found]
|
|
43
|
-
except ImportError:
|
|
44
|
-
import tomli as module # type: ignore[import-not-found,no-redef]
|
|
45
|
-
|
|
46
|
-
_toml_module = module
|
|
47
|
-
return module
|
|
48
|
-
|
|
49
|
-
|
|
50
29
|
# ---------------------------------------------------------------------------
|
|
51
30
|
# Helper Functions for Safe Value Extraction
|
|
52
31
|
# ---------------------------------------------------------------------------
|
|
@@ -436,8 +415,7 @@ class PyprojectConfig:
|
|
|
436
415
|
def from_path(cls, path: Path) -> PyprojectConfig:
|
|
437
416
|
"""Load configuration from a pyproject.toml file."""
|
|
438
417
|
try:
|
|
439
|
-
|
|
440
|
-
data: dict[str, Any] = toml.loads(path.read_text(encoding="utf-8"))
|
|
418
|
+
data: dict[str, Any] = rtoml.loads(path.read_text(encoding="utf-8"))
|
|
441
419
|
return cls.from_dict(data)
|
|
442
420
|
except Exception:
|
|
443
421
|
return cls()
|
{lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/src/lib_cli_exit_tools/__init__conf__.py
RENAMED
|
@@ -24,7 +24,7 @@ name = "lib_cli_exit_tools"
|
|
|
24
24
|
#: Human-readable summary shown in CLI help output.
|
|
25
25
|
title = "CLI exit handling helpers: clean signals, exit codes, and error printing"
|
|
26
26
|
#: Current release version pulled from ``pyproject.toml`` by automation.
|
|
27
|
-
version = "2.2.
|
|
27
|
+
version = "2.2.2"
|
|
28
28
|
#: Repository homepage presented to users.
|
|
29
29
|
homepage = "https://github.com/bitranox/lib_cli_exit_tools"
|
|
30
30
|
#: Author attribution surfaced in CLI output.
|
|
@@ -8,16 +8,11 @@ Each test verifies exactly one metadata behavior:
|
|
|
8
8
|
from __future__ import annotations
|
|
9
9
|
|
|
10
10
|
import runpy
|
|
11
|
-
import sys
|
|
12
11
|
from pathlib import Path
|
|
13
12
|
from typing import Any, cast
|
|
14
13
|
|
|
15
|
-
if sys.version_info >= (3, 11):
|
|
16
|
-
import tomllib
|
|
17
|
-
else:
|
|
18
|
-
import tomli as tomllib # type: ignore[import-not-found,no-redef]
|
|
19
|
-
|
|
20
14
|
import pytest
|
|
15
|
+
import rtoml
|
|
21
16
|
|
|
22
17
|
PROJECT_ROOT = Path(__file__).resolve().parent.parent
|
|
23
18
|
PYPROJECT_PATH = PROJECT_ROOT / "pyproject.toml"
|
|
@@ -30,8 +25,7 @@ TARGET_FIELDS = ("name", "title", "version", "homepage", "author", "author_email
|
|
|
30
25
|
|
|
31
26
|
|
|
32
27
|
def _load_pyproject() -> dict[str, Any]:
|
|
33
|
-
|
|
34
|
-
return tomllib.load(stream)
|
|
28
|
+
return rtoml.load(PYPROJECT_PATH)
|
|
35
29
|
|
|
36
30
|
|
|
37
31
|
def _resolve_init_conf_path(pyproject: dict[str, Any]) -> Path:
|
|
@@ -67,7 +61,7 @@ def _load_init_conf_metadata(init_conf_path: Path) -> dict[str, str]:
|
|
|
67
61
|
if not fragments:
|
|
68
62
|
raise AssertionError("No metadata assignments found in __init__conf__.py")
|
|
69
63
|
metadata_text = "[metadata]\n" + "\n".join(fragments)
|
|
70
|
-
parsed =
|
|
64
|
+
parsed = rtoml.loads(metadata_text)
|
|
71
65
|
metadata_table = cast(dict[str, str], parsed["metadata"])
|
|
72
66
|
return metadata_table
|
|
73
67
|
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/docs/system-design/module_reference.md
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/src/lib_cli_exit_tools/adapters/__init__.py
RENAMED
|
File without changes
|
{lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/src/lib_cli_exit_tools/adapters/signals.py
RENAMED
|
File without changes
|
{lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/src/lib_cli_exit_tools/application/__init__.py
RENAMED
|
File without changes
|
{lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/src/lib_cli_exit_tools/application/runner.py
RENAMED
|
File without changes
|
|
File without changes
|
{lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/src/lib_cli_exit_tools/core/__init__.py
RENAMED
|
File without changes
|
{lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/src/lib_cli_exit_tools/core/configuration.py
RENAMED
|
File without changes
|
{lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/src/lib_cli_exit_tools/core/exit_codes.py
RENAMED
|
File without changes
|
{lib_cli_exit_tools-2.2.0 → lib_cli_exit_tools-2.2.2}/src/lib_cli_exit_tools/lib_cli_exit_tools.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
|