Add parser keyword note to help and $nu.scope (#4978)

This commit is contained in:
Jakub Žádník
2022-03-26 21:22:45 +02:00
committed by GitHub
parent 79e4d35f01
commit 3484e0defd
21 changed files with 200 additions and 9 deletions

View File

@ -46,6 +46,11 @@ pub trait Command: Send + Sync + CommandClone {
self.name().contains(' ')
}
// Is a parser keyword (source, def, etc.)
fn is_parser_keyword(&self) -> bool {
false
}
// Is a plugin command (returns plugin's path, encoding and type of shell
// if the declaration is a plugin)
fn is_plugin(&self) -> Option<(&PathBuf, &str, &Option<PathBuf>)> {