Function command_exists

Source
pub fn command_exists<S>(name: S) -> bool
where S: Into<String> + AsRef<OsStr> + Value,
Expand description

Checks if a given command exists in current terminal context.

§Arguments

  • name - A string slice or String containing the name of the command to be checked.

§Return

A boolean indicating whether the command exists or not.