Extract completions into subcrate. (#3631)

This commit is contained in:
Andrés N. Robalino
2021-06-16 15:20:01 -05:00
committed by GitHub
parent 04c0e94349
commit 7c8fb060f1
19 changed files with 160 additions and 110 deletions

View File

@ -319,6 +319,10 @@ impl Scope {
}
impl ParserScope for Scope {
fn get_names(&self) -> Vec<String> {
self.get_command_names()
}
fn get_signature(&self, name: &str) -> Option<nu_protocol::Signature> {
self.get_command(name).map(|x| x.signature())
}