Skip to main content

discover

Function discover 

Source
pub fn discover(
    agent: &str,
    name: &str,
    explicit: Option<&Path>,
    path_var: Option<&OsStr>,
    config_file: &Path,
) -> Result<Found>
Expand description

Finds name for agent: the explicit override when given, otherwise the first absolute PATH directory that holds it. A shell script or a Windows shim is refused with a hint naming config_file.