Execute a command in the shell and return the output.
(args: List[str])
| 84 | |
| 85 | |
| 86 | def get_tool_output(args: List[str]) -> str: |
| 87 | """Execute a command in the shell and return the output.""" |
| 88 | result = subprocess.run(args, stdout=subprocess.PIPE) |
| 89 | output = result.stdout.decode("utf-8") |
| 90 | return output |
| 91 | |
| 92 | |
| 93 | def read_nm( |
no test coverage detected