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