shellscripts 0.26.2__py3-none-any.whl → 0.26.10__py3-none-any.whl
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.
- shell_scripts/__init__.py +1 -1
- shell_scripts/commands/__init__.py +9 -4
- shell_scripts/commands/cargo_bootstrap_trust.py +702 -0
- shell_scripts/commands/chrome_debug.py +87 -0
- shell_scripts/commands/codex.py +1 -1
- shell_scripts/commands/meld_highlight_theme.py +389 -0
- shell_scripts/commands/net_cmd.py +278 -0
- shell_scripts/commands/npm_bootstrap_trust.py +378 -0
- shell_scripts/commands/vscode_cmd.py +8 -11
- shell_scripts/commands/vsinsider_cmd.py +8 -11
- shell_scripts/config.py +1 -66
- shell_scripts/config_cli.py +7 -34
- shell_scripts/core.py +27 -8
- shellscripts-0.26.10.dist-info/METADATA +400 -0
- {shellscripts-0.26.2.dist-info → shellscripts-0.26.10.dist-info}/RECORD +19 -15
- shell_scripts/commands/req_cmd.py +0 -362
- shellscripts-0.26.2.dist-info/METADATA +0 -300
- {shellscripts-0.26.2.dist-info → shellscripts-0.26.10.dist-info}/WHEEL +0 -0
- {shellscripts-0.26.2.dist-info → shellscripts-0.26.10.dist-info}/entry_points.txt +0 -0
- {shellscripts-0.26.2.dist-info → shellscripts-0.26.10.dist-info}/licenses/LICENSE +0 -0
- {shellscripts-0.26.2.dist-info → shellscripts-0.26.10.dist-info}/top_level.txt +0 -0
shell_scripts/__init__.py
CHANGED
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
@details Defines a static command-to-module map consumed by the CLI dispatcher.
|
|
4
4
|
Dictionary lookup enforces deterministic command availability; missing keys
|
|
5
5
|
resolve to `None` to drive unknown-command error handling in the caller.
|
|
6
|
-
@satisfies PRJ-001, PRJ-002, PRJ-003, DES-001, DES-008,
|
|
6
|
+
@satisfies PRJ-001, PRJ-002, PRJ-003, PRJ-008, PRJ-009, DES-001, DES-008, DES-069,
|
|
7
|
+
DES-070, REQ-057, REQ-058
|
|
7
8
|
"""
|
|
8
9
|
|
|
9
10
|
import importlib
|
|
@@ -16,6 +17,8 @@ from types import ModuleType
|
|
|
16
17
|
# @satisfies PRJ-003, DES-001
|
|
17
18
|
_COMMAND_MODULES = {
|
|
18
19
|
"agy": "shell_scripts.commands.agy",
|
|
20
|
+
"cargo-bootstrap-trust": "shell_scripts.commands.cargo_bootstrap_trust",
|
|
21
|
+
"chrome-debug": "shell_scripts.commands.chrome_debug",
|
|
19
22
|
"clean": "shell_scripts.commands.clean",
|
|
20
23
|
"claude": "shell_scripts.commands.claude",
|
|
21
24
|
"codex": "shell_scripts.commands.codex",
|
|
@@ -34,9 +37,11 @@ _COMMAND_MODULES = {
|
|
|
34
37
|
"pdf-tiler-090": "shell_scripts.commands.pdf_tiler_090",
|
|
35
38
|
"pdf-tiler-100": "shell_scripts.commands.pdf_tiler_100",
|
|
36
39
|
"pdf-toc-clean": "shell_scripts.commands.pdf_toc_clean",
|
|
37
|
-
"req": "shell_scripts.commands.req_cmd",
|
|
38
40
|
"tests": "shell_scripts.commands.tests_cmd",
|
|
39
41
|
"ubuntu-dark-theme": "shell_scripts.commands.ubuntu_dark_theme",
|
|
42
|
+
"meld-highlight-theme": "shell_scripts.commands.meld_highlight_theme",
|
|
43
|
+
"net": "shell_scripts.commands.net_cmd",
|
|
44
|
+
"npm-bootstrap-trust": "shell_scripts.commands.npm_bootstrap_trust",
|
|
40
45
|
"venv": "shell_scripts.commands.venv_cmd",
|
|
41
46
|
"video2h264": "shell_scripts.commands.video2h264",
|
|
42
47
|
"video2h265": "shell_scripts.commands.video2h265",
|
|
@@ -53,7 +58,7 @@ def get_command(name: str) -> ModuleType | None:
|
|
|
53
58
|
@param name {str} CLI command token.
|
|
54
59
|
@return {ModuleType|None} Imported command module for known token; `None` otherwise.
|
|
55
60
|
@throws {ImportError} If module path exists in map but import fails.
|
|
56
|
-
@satisfies PRJ-001, DES-001, DES-008, REQ-057, REQ-058
|
|
61
|
+
@satisfies PRJ-001, DES-001, DES-008, DES-069, REQ-057, REQ-058
|
|
57
62
|
"""
|
|
58
63
|
module_path = _COMMAND_MODULES.get(name)
|
|
59
64
|
if module_path is None:
|
|
@@ -69,7 +74,7 @@ def get_all_commands() -> dict[str, str]:
|
|
|
69
74
|
Time complexity O(N log N) for N commands due to key sorting.
|
|
70
75
|
@return {dict[str, str]} Mapping `command_name -> description`.
|
|
71
76
|
@throws {ImportError} If any mapped command module import fails.
|
|
72
|
-
@satisfies PRJ-002, DES-001, DES-008, REQ-057, REQ-058
|
|
77
|
+
@satisfies PRJ-002, DES-001, DES-008, DES-069, REQ-057, REQ-058
|
|
73
78
|
"""
|
|
74
79
|
result: dict[str, str] = {}
|
|
75
80
|
for name in sorted(_COMMAND_MODULES):
|