Skip to main content

Module cmd

Module cmd 

Source
Expand description

Command utilities

Functionsยง

exec_cmd
Return a subprocess::Exec for a command.
exec_in_dir
Return a subprocess::Exec that runs a command in the specified directory.
initialize_threads_option
Initialize the global thread pool when the num_jobs option is provided.
shlex_split
Split a shell string into command-line arguments.
status
Return an exit status code from a subprocess::Exec instance.
stdout_to_string
Return a trimmed stdout string for an subprocess::Exec instance.
subprocess_result
Flatten a std::io::Result into a Result<(), u32>.