Skip to main content

run_alias_from_args

Function run_alias_from_args 

Source
pub fn run_alias_from_args<I, T>(args: I) -> Result<i32>
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Expand description

Parse explicit args as the run alias binary, detect current dir, dispatch, and return the exit code. See run_alias_from_env.

args must include argv[0] as first item.

ยงErrors

Returns an error when reading current dir fails, project detection fails, command execution fails, or writing clap output fails.