Add support for defining known externals with their own custom completions (#4425)

* WIP for known externals

* Now completions can work from scripts

* Add support for definiing externs

* finish cleaning up old proof-of-concept
This commit is contained in:
JT
2022-02-11 13:38:10 -05:00
committed by GitHub
parent a767fa369c
commit a16e485cce
16 changed files with 331 additions and 225 deletions

View File

@ -41,6 +41,11 @@ pub trait Command: Send + Sync + CommandClone {
true
}
// This is a signature for a known external command
fn is_known_external(&self) -> bool {
false
}
// Is a sub command
fn is_sub(&self) -> bool {
self.name().contains(' ')