MCPcopy
hub / github.com/NVIDIA/TensorRT-LLM / run_shell_command

Function run_shell_command

scripts/rename_docker_images.py:61–69  ·  view source on GitHub ↗

Run a shell command and display its output. Args: command (str): The shell command to execute.

(command: str, dry_run: bool)

Source from the content-addressed store, hash-verified

59
60
61def run_shell_command(command: str, dry_run: bool) -> None:
62 """Run a shell command and display its output.
63
64 Args:
65 command (str): The shell command to execute.
66 """
67 print(command)
68 if not dry_run:
69 _sp.run(command, shell=True, check=True, text=True)
70
71
72def find_script_directory() -> _pl.Path:

Callers 1

rename_imagesFunction · 0.70

Calls 1

runMethod · 0.45

Tested by

no test coverage detected