MCPcopy Create free account
hub / github.com/mlco2/codecarbon / run_command_line_tool

Function run_command_line_tool

examples/command_line_tool.py:34–38  ·  view source on GitHub ↗
(command)

Source from the content-addressed store, hash-verified

32
33
34def run_command_line_tool(command):
35 result = subprocess.run(command, capture_output=True, text=True)
36 print(result.stdout)
37 if result.stderr:
38 print(f"Error: {result.stderr}")
39
40
41if __name__ == "__main__":

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…