kdebug 0.7.2__tar.gz → 0.7.4__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.
- {kdebug-0.7.2 → kdebug-0.7.4}/PKG-INFO +1 -1
- {kdebug-0.7.2 → kdebug-0.7.4}/pyproject.toml +1 -1
- {kdebug-0.7.2 → kdebug-0.7.4}/src/kdebug/backup.py +1 -1
- {kdebug-0.7.2 → kdebug-0.7.4}/src/kdebug/cli.py +5 -5
- {kdebug-0.7.2 → kdebug-0.7.4}/src/kdebug/debug.py +1 -1
- {kdebug-0.7.2 → kdebug-0.7.4}/.gitignore +0 -0
- {kdebug-0.7.2 → kdebug-0.7.4}/README.md +0 -0
- {kdebug-0.7.2 → kdebug-0.7.4}/src/kdebug/__init__.py +0 -0
- {kdebug-0.7.2 → kdebug-0.7.4}/src/kdebug/completions/__init__.py +0 -0
- {kdebug-0.7.2 → kdebug-0.7.4}/src/kdebug/completions/_kdebug +0 -0
- {kdebug-0.7.2 → kdebug-0.7.4}/src/kdebug/completions/kdebug.bash +0 -0
- {kdebug-0.7.2 → kdebug-0.7.4}/src/kdebug/completions/kdebug.fish +0 -0
|
@@ -103,7 +103,7 @@ def run_command(cmd: str, check: bool = True, use_bash: bool = False) -> Optiona
|
|
|
103
103
|
if use_bash:
|
|
104
104
|
# Use bash explicitly for commands that need bash features like process substitution
|
|
105
105
|
result = subprocess.run(
|
|
106
|
-
["
|
|
106
|
+
["sh", "-c", cmd], capture_output=True, text=True, check=check
|
|
107
107
|
)
|
|
108
108
|
else:
|
|
109
109
|
# Run as a direct exec (no shell) so kubectl works in environments
|
|
@@ -133,7 +133,7 @@ _CONFIG_KEYS = {"debugImage", "cmd", "cdInto", "backupContainerPath", "backupLoc
|
|
|
133
133
|
|
|
134
134
|
_HARDCODED_DEFAULTS = {
|
|
135
135
|
"debugImage": "ghcr.io/jessegoodier/toolbox-common:latest",
|
|
136
|
-
"cmd": "
|
|
136
|
+
"cmd": "sh",
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
|
|
@@ -852,7 +852,7 @@ def cleanup_debug_container(
|
|
|
852
852
|
f"{kubectl_base_cmd()} exec {pod_name} "
|
|
853
853
|
f"-n {namespace} "
|
|
854
854
|
f"-c {debug_container} "
|
|
855
|
-
f"--
|
|
855
|
+
f"-- sh -c 'kill -9 1' 2>/dev/null || true"
|
|
856
856
|
)
|
|
857
857
|
|
|
858
858
|
run_command(cmd, check=False)
|
|
@@ -863,7 +863,7 @@ def cleanup_debug_container(
|
|
|
863
863
|
|
|
864
864
|
def _output_completion_script(shell: str) -> None:
|
|
865
865
|
"""Output the shell completion script and exit."""
|
|
866
|
-
files = {"
|
|
866
|
+
files = {"sh": "kdebug.sh", "zsh": "_kdebug", "fish": "kdebug.fish"}
|
|
867
867
|
filename = files.get(shell)
|
|
868
868
|
if not filename:
|
|
869
869
|
err_console.print(f"[error]Unknown shell:[/] {escape(shell)}")
|
|
@@ -983,7 +983,7 @@ Usage:
|
|
|
983
983
|
)
|
|
984
984
|
util_group.add_argument(
|
|
985
985
|
"--completions",
|
|
986
|
-
choices=["
|
|
986
|
+
choices=["sh", "zsh", "fish"],
|
|
987
987
|
metavar="SHELL",
|
|
988
988
|
help="Output shell completion script (bash, zsh, fish)",
|
|
989
989
|
)
|
|
@@ -37,7 +37,7 @@ def exec_interactive(
|
|
|
37
37
|
|
|
38
38
|
# If cd_into is specified, wrap command to cd first
|
|
39
39
|
if cd_into:
|
|
40
|
-
if cmd == "
|
|
40
|
+
if cmd == "sh":
|
|
41
41
|
cmd = f"bash -c 'cd /proc/1/root{cd_into} && exec bash'"
|
|
42
42
|
elif cmd == "sh":
|
|
43
43
|
cmd = f"sh -c 'cd /proc/1/root{cd_into} && exec sh'"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|