arun_cli()
Run a CLI command asynchronously and return its stdout.
Usage
arun_cli(
argv,
*,
input=None,
env=None,
cwd=None,
stderr_tee=None,
)Parameters
argv: list[str]-
The command and its arguments.
input: str | None = None-
Text delivered to the process over stdin.
env: dict[str, str] | None = None-
Environment for the process;
Noneinherits the current environment. cwd: str | None = None-
Working directory for the process.
stderr_tee: Callable[[bytes], None] | None = None- Callback invoked with each stderr line as it arrives.
Returns
bytes- The raw stdout bytes.
Raises
subprocess.CalledProcessError- On a nonzero exit code.