Run subprocess and return its output.
(command: List[str])
| 21 | |
| 22 | |
| 23 | def run(command: List[str]) -> str: |
| 24 | """Run subprocess and return its output.""" |
| 25 | result = subprocess.run(command, capture_output=True, check=True, cwd=BUCK_CWD) |
| 26 | return result.stdout.decode() |
| 27 | |
| 28 | |
| 29 | def query(buck2: str, target: str, attribute: str) -> str: |
no test coverage detected