[][src]Function ichwh::which

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

Searches PATH for an executable with the name bin

Errors

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