forked from extern/nushell
* feat: Add search terms to find, where, exit, which and fetch, update #5093 * Update crates/nu-command/src/filters/where_.rs Co-authored-by: Stefan Holderbach <sholderbach@users.noreply.github.com> * Update crates/nu-command/src/filters/find.rs Co-authored-by: Stefan Holderbach <sholderbach@users.noreply.github.com> * Update crates/nu-command/src/shells/exit.rs Co-authored-by: Stefan Holderbach <sholderbach@users.noreply.github.com> Co-authored-by: Stefan Holderbach <sholderbach@users.noreply.github.com>
This commit is contained in:
parent
6c07bc10e2
commit
23a73cd31f
@ -130,6 +130,10 @@ impl Command for Find {
|
||||
]
|
||||
}
|
||||
|
||||
fn search_terms(&self) -> Vec<&str> {
|
||||
vec!["filter", "regex", "search", "condition"]
|
||||
}
|
||||
|
||||
fn run(
|
||||
&self,
|
||||
engine_state: &EngineState,
|
||||
|
@ -23,6 +23,10 @@ impl Command for Where {
|
||||
.category(Category::Filters)
|
||||
}
|
||||
|
||||
fn search_terms(&self) -> Vec<&str> {
|
||||
vec!["filter", "find", "search", "condition"]
|
||||
}
|
||||
|
||||
fn run(
|
||||
&self,
|
||||
engine_state: &EngineState,
|
||||
|
@ -76,7 +76,9 @@ impl Command for SubCommand {
|
||||
}
|
||||
|
||||
fn search_terms(&self) -> Vec<&str> {
|
||||
vec!["network", "fetch", "get", "pull", "request", "http"]
|
||||
vec![
|
||||
"network", "fetch", "get", "pull", "request", "http", "download", "curl", "wget",
|
||||
]
|
||||
}
|
||||
|
||||
fn run(
|
||||
|
@ -30,6 +30,10 @@ impl Command for Exit {
|
||||
"Exit a Nu shell or exit Nu entirely."
|
||||
}
|
||||
|
||||
fn search_terms(&self) -> Vec<&str> {
|
||||
vec!["quit", "close", "exit_code", "error_code", "logout"]
|
||||
}
|
||||
|
||||
fn run(
|
||||
&self,
|
||||
engine_state: &EngineState,
|
||||
|
@ -32,6 +32,10 @@ impl Command for Which {
|
||||
"Finds a program file, alias or custom command."
|
||||
}
|
||||
|
||||
fn search_terms(&self) -> Vec<&str> {
|
||||
vec!["find", "path", "location", "command"]
|
||||
}
|
||||
|
||||
fn run(
|
||||
&self,
|
||||
engine_state: &EngineState,
|
||||
|
Loading…
Reference in New Issue
Block a user