MCPcopy Create free account
hub / github.com/pytorch/executorch / run

Function run

scripts/print_exported_headers.py:23–26  ·  view source on GitHub ↗

Run subprocess and return its output.

(command: List[str])

Source from the content-addressed store, hash-verified

21
22
23def 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
29def query(buck2: str, target: str, attribute: str) -> str:

Callers 2

queryFunction · 0.70
expand_targetFunction · 0.70

Calls 2

runMethod · 0.45
decodeMethod · 0.45

Tested by

no test coverage detected