mirror of
https://github.com/nushell/nushell.git
synced 2025-08-15 11:03:22 +02:00
Add parser keyword note to help and $nu.scope (#4978)
This commit is contained in:
@ -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>)> {
|
||||
|
Reference in New Issue
Block a user