Function
run_command
(command, capture=False, check=True, doit=True, env_extra=None, caller=0)
Source from the content-addressed store, hash-verified
| 421 | |
| 422 | |
| 423 | def run_command(command, capture=False, check=True, doit=True, env_extra=None, caller=0): |
| 424 | if doit: |
| 425 | return pipcl.run(command, capture=capture, check=check, caller=caller+2, env_extra=env_extra) |
| 426 | else: |
| 427 | log(f'## Would have run: {command}', caller=2) |
| 428 | |
| 429 | |
| 430 | if __name__ == '__main__': |
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…