• Home
  • Raw
  • Download

Lines Matching full: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> in which_in()
155 which_in_all(binary_name, paths, cwd) in which_in()
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>, in which_re_in()
194 finder.find_re(regex, paths, binary_checker) in which_re_in()
197 …ind all binaries with `binary_name` in the path list `paths`, using `cwd` to resolve relative path…
200 paths: Option<U>, in which_in_all()
212 finder.find(binary_name, paths, Some(cwd), binary_checker) in which_in_all()
215 /// Find all binaries with `binary_name` in the path list `paths`, ignoring `cwd`.
218 paths: Option<U>, in which_in_global()
228 finder.find(binary_name, paths, Option::<&Path>::None, binary_checker) in which_in_global()
283 /// Sets a custom path for resolving relative paths.
364 let paths = self.custom_path_list.or_else(|| env::var_os("PATH")); in all_results() localVariable
369 .find_re(regex, paths, binary_checker) in all_results()
384 paths, in all_results()
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> in new_in()
432 which_in(binary_name, paths, cwd).map(|inner| Path { inner }) in new_in()
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>, in all_in()
449 which_in_all(binary_name, paths, cwd).map(|inner| inner.map(|inner| Path { inner })) in all_in()
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> in new_in()
555 which_in(binary_name, paths, cwd) in new_in()
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>, in all_in()
574 which_in_all(binary_name, paths, cwd).map(|inner| { in all_in()