Add search terms to many commands (#5096)

This commit is contained in:
Reilly Wood
2022-04-05 05:01:21 -07:00
committed by GitHub
parent fa6ed7a40b
commit 657b631fdc
17 changed files with 62 additions and 2 deletions

View File

@ -27,6 +27,10 @@ impl Command for Ls {
"List the files in a directory."
}
fn search_terms(&self) -> Vec<&str> {
vec!["dir"]
}
fn signature(&self) -> nu_protocol::Signature {
Signature::build("ls")
// Using a string instead of a glob pattern shape so it won't auto-expand