Expand description
Subprocesses through command-stream (issue #104).
Every subprocess Browser Commander starts - the real browser, the credential
tools (security, secret-tool, kwallet-query, powershell.exe,
icacls, whoami) and anything else run to completion - goes through the
command_stream crate. Its argv mode runs the file directly with exact
argument boundaries, no shell in between, and gives one consistent surface
for streaming output, cancellation and exit codes. This module mirrors
js/src/utilities/subprocess.js and the Python subprocess wrapper: the
same two functions, run_command and start_process, with snake_case
names.
Structs§
- Command
Output - Output of a command run to completion by
run_command. - Managed
Process - Handle for a long-running process started by
start_process, such as a browser. - RunCommand
Options - Options for
run_command. - Start
Process Options - Options for
start_process.
Enums§
- Command
Error - Failure to run a command.
Constants§
- DEFAULT_
KILL_ GRACE - Milliseconds between the polite signal and
SIGKILLwhen a process started bystart_processis stopped, matching the JavaScriptkillGracedefault.
Functions§
- run_
command - Run a command to completion and return its output.
- run_
command_ blocking - Synchronous
run_commandfor code that is not async, such as the credential-store readers. - start_
process - Start a long-running process, such as a browser.
Type Aliases§
- Output
Listener - Callback receiving raw output chunks of a process started by
start_process.