mirror of
https://github.com/nushell/nushell.git
synced 2024-11-08 01:24:38 +01:00
add a fair amount ofsearch terms (#6090)
This commit is contained in:
parent
604025fe34
commit
8f00848ff9
@ -40,7 +40,7 @@ impl Command for BytesReverse {
|
||||
}
|
||||
|
||||
fn search_terms(&self) -> Vec<&str> {
|
||||
vec!["convert", "inverse"]
|
||||
vec!["convert", "inverse", "flip"]
|
||||
}
|
||||
|
||||
fn run(
|
||||
|
@ -35,6 +35,10 @@ impl Command for Let {
|
||||
true
|
||||
}
|
||||
|
||||
fn search_terms(&self) -> Vec<&str> {
|
||||
vec!["set", "const"]
|
||||
}
|
||||
|
||||
fn run(
|
||||
&self,
|
||||
engine_state: &EngineState,
|
||||
|
@ -21,6 +21,10 @@ impl Command for Reverse {
|
||||
"Reverses the table."
|
||||
}
|
||||
|
||||
fn search_terms(&self) -> Vec<&str> {
|
||||
vec!["convert, inverse, flip"]
|
||||
}
|
||||
|
||||
fn examples(&self) -> Vec<Example> {
|
||||
vec![Example {
|
||||
example: "[0,1,2,3] | reverse",
|
||||
|
@ -29,6 +29,10 @@ impl Command for Select {
|
||||
"Down-select table to only these columns."
|
||||
}
|
||||
|
||||
fn search_terms(&self) -> Vec<&str> {
|
||||
vec!["pick", "choose", "get"]
|
||||
}
|
||||
|
||||
fn run(
|
||||
&self,
|
||||
engine_state: &EngineState,
|
||||
|
@ -26,6 +26,10 @@ impl Command for Skip {
|
||||
"Skip the first n elements of the input."
|
||||
}
|
||||
|
||||
fn search_terms(&self) -> Vec<&str> {
|
||||
vec!["ignore", "remove"]
|
||||
}
|
||||
|
||||
fn examples(&self) -> Vec<Example> {
|
||||
vec![
|
||||
Example {
|
||||
|
@ -28,6 +28,10 @@ impl Command for SkipUntil {
|
||||
"Skip elements of the input until a predicate is true."
|
||||
}
|
||||
|
||||
fn search_terms(&self) -> Vec<&str> {
|
||||
vec!["ignore"]
|
||||
}
|
||||
|
||||
fn examples(&self) -> Vec<Example> {
|
||||
vec![Example {
|
||||
description: "Skip until the element is positive",
|
||||
|
@ -28,6 +28,10 @@ impl Command for SkipWhile {
|
||||
"Skip elements of the input while a predicate is true."
|
||||
}
|
||||
|
||||
fn search_terms(&self) -> Vec<&str> {
|
||||
vec!["ignore"]
|
||||
}
|
||||
|
||||
fn examples(&self) -> Vec<Example> {
|
||||
vec![Example {
|
||||
description: "Skip while the element is negative",
|
||||
|
@ -28,7 +28,7 @@ impl Command for SubCommand {
|
||||
}
|
||||
|
||||
fn search_terms(&self) -> Vec<&str> {
|
||||
vec!["convert", "inverse"]
|
||||
vec!["convert", "inverse", "flip"]
|
||||
}
|
||||
|
||||
fn run(
|
||||
|
@ -29,6 +29,10 @@ impl Command for Ps {
|
||||
"View information about system processes."
|
||||
}
|
||||
|
||||
fn search_terms(&self) -> Vec<&str> {
|
||||
vec!["procedures", "operations", "tasks", "ops"]
|
||||
}
|
||||
|
||||
fn run(
|
||||
&self,
|
||||
engine_state: &EngineState,
|
||||
|
Loading…
Reference in New Issue
Block a user