Skip to main content

resolve

Function resolve 

Source
pub fn resolve(name: impl AsRef<str>, path: impl AsRef<Path>) -> Result<PathBuf>
Available on crate feature fs only.
Expand description

Resolve an executable at the location provided, or use a previously registered path.

Result will be cached so finding the same executable name will always result in the same path.

See cu::bin module-level documentation for more info.