(
args: list[str | pathlib.Path], check: bool = True, echo=False, **kwargs: Any
)
| 254 | |
| 255 | |
| 256 | def run( |
| 257 | args: list[str | pathlib.Path], check: bool = True, echo=False, **kwargs: Any |
| 258 | ) -> subprocess.CompletedProcess[Any]: |
| 259 | if echo: |
| 260 | print(" ".join(str(x) for x in args)) |
| 261 | result = subprocess.run(args, check=False, text=True, **kwargs) |
| 262 | if check and result.returncode: |
| 263 | sys.exit(result.returncode) |
| 264 | return result |
| 265 | |
| 266 | |
| 267 | def check_clean_working_tree(): |
no test coverage detected