kdebug 0.7.3__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: kdebug
3
- Version: 0.7.3
3
+ Version: 0.7.4
4
4
  Summary: TUI for Kubernetes Debug Containers
5
5
  Project-URL: Homepage, https://github.com/jessegoodier/kdebug
6
6
  Project-URL: Repository, https://github.com/jessegoodier/kdebug
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "kdebug"
7
- version = "0.7.3"
7
+ version = "0.7.4"
8
8
  description = "TUI for Kubernetes Debug Containers"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -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
- ["bash", "-c", cmd], capture_output=True, text=True, check=check
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": "bash",
136
+ "cmd": "sh",
137
137
  }
138
138
 
139
139
 
@@ -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 = {"bash": "kdebug.bash", "zsh": "_kdebug", "fish": "kdebug.fish"}
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=["bash", "zsh", "fish"],
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 == "bash":
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