(cmd: str, *, capture_output: bool = False, **kwargs: Any)
| 23 | # Helper functions ------------------------------------------------------------ |
| 24 | # ----------------------------------------------------------------------------- |
| 25 | def _shell(cmd: str, *, capture_output: bool = False, **kwargs: Any) -> str | None: |
| 26 | if capture_output: |
| 27 | return subprocess.check_output(cmd, shell=True, text=True, **kwargs) # noqa: S602 |
| 28 | subprocess.run(cmd, shell=True, check=True, stderr=subprocess.STDOUT, **kwargs) # noqa: S602 |
| 29 | return None |
| 30 | |
| 31 | |
| 32 | @contextmanager |
no outgoing calls
no test coverage detected
searching dependent graphs…