Function get_command

Source
pub(crate) fn get_command(command: &str) -> Result<PathBuf, Error>
Expand description

Returns the path to a command.

Searches for an executable in $PATH of the current environment and returns the first one found.

ยงErrors

Returns an error if no executable matches the provided command.