Function nu_command::query

source ·
pub fn query<P>(
    arg: &P,
    excluded: Option<PathBuf>,
    span: Span
) -> Result<PathBuf, ShellError>where
    P: AsRef<Path>,
Expand description

The query subcommand.

It takes two args — --abbr and --exclude (optionally). The value of --abbr gets split into a prefix containing components like c:/, /, ~/, and dots, and Abbr’s. If there is more than one dir matching the query, the value of --exclude is excluded from the search.