Skip to main content

Module process

Module process 

Source
Available on crate feature process only.
Expand description

Process and shell helpers.

Structs§

ExitCode
Error type for commands that intentionally terminate with a specific process exit code.

Functions§

command_exists
Return true when program exists somewhere on PATH.
ensure_command
Fail with a user-facing message when program is not on PATH.
push_dir
Temporarily change the shell’s current directory for a command block.
shell
Create an xshell::Shell with context suitable for CLI errors.