MCPcopy Index your code
hub / github.com/streamlit/streamlit / process_command

Function process_command

scripts/run_bare_execution_tests.py:86–101  ·  view source on GitHub ↗
(arg: tuple[int, str])

Source from the content-addressed store, hash-verified

84 failed_commands = []
85
86 def process_command(arg: tuple[int, str]) -> None:
87 i, command = arg
88
89 # Display the status.
90 click.secho(
91 f"\nRunning {section_header} {i + 1}/{len(commands)} : {_command_to_string(command)}",
92 bold=True,
93 )
94
95 # Run the command.
96 result = subprocess.call(
97 command.split(" "), stdout=subprocess.DEVNULL, stderr=None
98 )
99 if result != 0:
100 with lock:
101 failed_commands.append(command)
102
103 pool.map(process_command, enumerate(commands))
104 return failed_commands

Callers

nothing calls this directly

Calls 1

_command_to_stringFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…