Skip to main content

Module process

Module process 

Source
Expand description

Running external commands with scrubbed credentials.

Structs§

ExitFailure
A command that ran to completion and exited unsuccessfully.
TimedOut
A command that ran longer than its timeout and was killed.

Constants§

DEFAULT_OUTPUT_LIMIT
How many bytes a driver command may print before it is killed.
DEFAULT_TIMEOUT
How long a driver command may run.

Functions§

argv
["cargo", "publish"] without a .into() on every word.
filter
Run an argv with stdin piped and stdout captured.
filter_limited
filter with an explicit timeout and output limit.
run_in
Run an argv in dir with env set, no stdin, and stdout captured. A registry query runs this way in the package directory, where the registry config of the publisher is in effect.
run_inherit
Stream the command’s stdout and stderr to this process’s stderr. Actions then show cargo/bun as they run, and stdout contains only verctl’s own report, so --format json stays parseable. The error keeps the last 64 KiB of the streamed output. A caller such as release reads it to recognise an already-published version.
run_inherit_env
run_inherit, plus env set on the command. Only a command that needs a secret takes this path, such as a publisher that reads its registry token.
run_inherit_in
run_inherit in dir, or in this process’s working directory when dir is None.
run_limited
Run an argv with no stdin. Used by release.