(cmds)
| 5 | |
| 6 | |
| 7 | def run(cmds): |
| 8 | print(' '.join(cmds)) |
| 9 | p = subprocess.run( |
| 10 | cmds, |
| 11 | cwd=Path(__file__).parent / 'code', |
| 12 | capture_output=True, |
| 13 | check=True |
| 14 | ) |
| 15 | if p.returncode: |
| 16 | raise Exception(p.stderr.decode()) |
| 17 | output = p.stdout.decode() |
| 18 | print(output) |
| 19 | return output |
| 20 | |
| 21 | all_branches = run(['git', 'branch', '-a'],) |
| 22 |
no outgoing calls
no test coverage detected