mirror of
https://github.com/nushell/nushell.git
synced 2024-11-28 19:33:47 +01:00
# Description Add search terms to the commands: `use` ("environment", "import"), `while` ("loop"), and `range` ("filter", "head", "tail"). # Tests + Formatting All completed successfully. --------- Co-authored-by: Stefan Holderbach <sholderbach@users.noreply.github.com>
This commit is contained in:
parent
f021be623e
commit
f78d57a703
@ -30,6 +30,10 @@ impl Command for Use {
|
||||
.category(Category::Core)
|
||||
}
|
||||
|
||||
fn search_terms(&self) -> Vec<&str> {
|
||||
vec!["module", "import", "include", "scope"]
|
||||
}
|
||||
|
||||
fn extra_usage(&self) -> &str {
|
||||
r#"See `help std` for the standard library module.
|
||||
See `help modules` to list all available modules.
|
||||
|
@ -30,6 +30,10 @@ impl Command for While {
|
||||
.category(Category::Core)
|
||||
}
|
||||
|
||||
fn search_terms(&self) -> Vec<&str> {
|
||||
vec!["loop"]
|
||||
}
|
||||
|
||||
fn run(
|
||||
&self,
|
||||
engine_state: &EngineState,
|
||||
|
@ -33,6 +33,10 @@ impl Command for Range {
|
||||
"Return only the selected rows."
|
||||
}
|
||||
|
||||
fn search_terms(&self) -> Vec<&str> {
|
||||
vec!["filter", "head", "tail"]
|
||||
}
|
||||
|
||||
fn examples(&self) -> Vec<Example> {
|
||||
vec![
|
||||
Example {
|
||||
|
Loading…
Reference in New Issue
Block a user