Lines Matching refs:paths

64 /// Does not resolve relative paths.
84 /// Find all binaries with `binary_name` using `cwd` to resolve relative paths.
148 /// Find `binary_name` in the path list `paths`, using `cwd` to resolve relative paths.
149 pub fn which_in<T, U, V>(binary_name: T, paths: Option<U>, cwd: V) -> Result<path::PathBuf>
155 which_in_all(binary_name, paths, cwd)
159 /// Find all binaries matching a regular expression in a list of paths.
166 /// * `paths` - A string containing the paths to search
177 /// let paths = Some("/usr/bin:/usr/local/bin");
178 /// let binaries: Vec<PathBuf> = which::which_re_in(re, paths).unwrap().collect();
185 paths: Option<T>,
194 finder.find_re(regex, paths, binary_checker)
197 /// Find all binaries with `binary_name` in the path list `paths`, using `cwd` to resolve relative paths.
200 paths: Option<U>,
212 finder.find(binary_name, paths, Some(cwd), binary_checker)
215 /// Find all binaries with `binary_name` in the path list `paths`, ignoring `cwd`.
218 paths: Option<U>,
228 finder.find(binary_name, paths, Option::<&Path>::None, binary_checker)
283 /// Sets a custom path for resolving relative paths.
364 let paths = self.custom_path_list.or_else(|| env::var_os("PATH"));
369 .find_re(regex, paths, binary_checker)
384 paths,
415 /// Returns the paths of all executable binaries by a name.
422 /// Returns the path of an executable binary by name in the path list `paths` and using the
423 /// current working directory `cwd` to resolve relative paths.
426 pub fn new_in<T, U, V>(binary_name: T, paths: Option<U>, cwd: V) -> Result<Path>
432 which_in(binary_name, paths, cwd).map(|inner| Path { inner })
435 /// Returns all paths of an executable binary by name in the path list `paths` and using the
436 /// current working directory `cwd` to resolve relative paths.
441 paths: Option<U>,
449 which_in_all(binary_name, paths, cwd).map(|inner| inner.map(|inner| Path { inner }))
529 /// Returns the canonical paths of an executable binary by name.
545 /// Returns the canonical path of an executable binary by name in the path list `paths` and
546 /// using the current working directory `cwd` to resolve relative paths.
549 pub fn new_in<T, U, V>(binary_name: T, paths: Option<U>, cwd: V) -> Result<CanonicalPath>
555 which_in(binary_name, paths, cwd)
560 /// Returns all of the canonical paths of an executable binary by name in the path list `paths` and
561 /// using the current working directory `cwd` to resolve relative paths.
566 paths: Option<U>,
574 which_in_all(binary_name, paths, cwd).map(|inner| {