nu-cli 0.115.0

CLI-related functionality for Nushell
Documentation
1
2
3
4
5
6
7
8
9
use crate::completions::{Completer, Context, Fetched, completion_common::complete_paths};

pub struct DirectoryCompletion;

impl Completer for DirectoryCompletion {
    fn fetch(&mut self, ctx: &Context) -> Fetched {
        complete_paths(ctx, true)
    }
}