MCPcopy Create free account
hub / github.com/FastLED/FastLED / run_docker_command_streaming

Function run_docker_command_streaming

ci/docker_utils/qemu_esp32_docker.py:117–130  ·  view source on GitHub ↗

Run docker command with streaming output using RunningProcess.

(cmd: list[str])

Source from the content-addressed store, hash-verified

115
116
117def run_docker_command_streaming(cmd: list[str]) -> int:
118 """Run docker command with streaming output using RunningProcess."""
119 print(f"Executing: {' '.join(cmd)}")
120 proc = RunningProcess(cmd, env=get_docker_env(), auto_run=True)
121
122 # Stream all output to stdout
123 with proc.line_iter(timeout=None) as it:
124 for line in it:
125 print(line)
126
127 returncode = cast(int, proc.wait())
128 if returncode != 0:
129 raise subprocess.CalledProcessError(returncode, cmd)
130 return returncode
131
132
133def run_docker_command_no_fail(cmd: list[str]) -> int:

Callers 1

pull_imageMethod · 0.85

Calls 3

get_docker_envFunction · 0.85
printFunction · 0.50
waitMethod · 0.45

Tested by

no test coverage detected