MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / _run_command

Method _run_command

tools/ng/toolchain.py:56–62  ·  view source on GitHub ↗

Run command and return (returncode, stdout, stderr).

(self, cmd: List[str])

Source from the content-addressed store, hash-verified

54 return self.info.version if self.info else None
55
56 def _run_command(self, cmd: List[str]) -> Tuple[int, str, str]:
57 """Run command and return (returncode, stdout, stderr)."""
58 try:
59 result = subprocess.run(cmd, capture_output=True, text=True)
60 return result.returncode, result.stdout, result.stderr
61 except Exception as e:
62 return -1, "", str(e)
63
64
65class GccToolchain(Toolchain):

Callers 2

detectMethod · 0.80
detectMethod · 0.80

Calls 1

runMethod · 0.45

Tested by

no test coverage detected