[][src]Function ichwh::which

pub async fn which<'_>(bin: &'_ str) -> IchwhResult<PathBuf>

Searches PATH for an executable with the name bin. The core functionality of the which command

Errors

  • Binary is not found
  • PATH is not defined as an environment variable
  • An IO error occurs