Run a command and return the result. Both cmd arguments and cwd can be Path objects - subprocess.run handles them automatically. env, if provided, contains extra environment variables merged on top of os.environ. Timeouts are caught and returned as a CommandResult with timed_out=True.
(
cmd: Sequence[Union[str, Path]],
cwd: Optional[Union[str, Path]] = None,
env: Optional[dict[str,str]] = None,
timeout: Optional[float] = None,
)
source not stored for this graph (policy: none)