Run a shell command and display its output. Args: command (str): The shell command to execute.
(command: str, dry_run: bool)
| 59 | |
| 60 | |
| 61 | def 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 | |
| 72 | def find_script_directory() -> _pl.Path: |