forked from extern/nushell
Extract completions into subcrate. (#3631)
This commit is contained in:
committed by
GitHub
parent
04c0e94349
commit
7c8fb060f1
@ -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())
|
||||
}
|
||||
|
Reference in New Issue
Block a user