forked from extern/nushell
Add search terms to 'math' commands (#5990)
* Remove 'average' from search_terms * Add search_terms to 'floor' and 'variance'
This commit is contained in:
parent
83458510a9
commit
125e60d06a
@ -18,6 +18,10 @@ impl Command for SubCommand {
|
|||||||
"Applies the floor function to a list of numbers"
|
"Applies the floor function to a list of numbers"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn search_terms(&self) -> Vec<&str> {
|
||||||
|
vec!["floor"]
|
||||||
|
}
|
||||||
|
|
||||||
fn run(
|
fn run(
|
||||||
&self,
|
&self,
|
||||||
engine_state: &EngineState,
|
engine_state: &EngineState,
|
||||||
|
@ -23,7 +23,7 @@ impl Command for SubCommand {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn search_terms(&self) -> Vec<&str> {
|
fn search_terms(&self) -> Vec<&str> {
|
||||||
vec!["middle", "average"]
|
vec!["middle", "median"]
|
||||||
}
|
}
|
||||||
|
|
||||||
fn run(
|
fn run(
|
||||||
|
@ -44,7 +44,7 @@ impl Command for SubCommand {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn search_terms(&self) -> Vec<&str> {
|
fn search_terms(&self) -> Vec<&str> {
|
||||||
vec!["common", "often", "average"]
|
vec!["common", "often"]
|
||||||
}
|
}
|
||||||
|
|
||||||
fn run(
|
fn run(
|
||||||
|
@ -21,6 +21,10 @@ impl Command for SubCommand {
|
|||||||
"Finds the variance of a list of numbers or tables"
|
"Finds the variance of a list of numbers or tables"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn search_terms(&self) -> Vec<&str> {
|
||||||
|
vec!["deviation", "dispersion", "variance", "variation"]
|
||||||
|
}
|
||||||
|
|
||||||
fn run(
|
fn run(
|
||||||
&self,
|
&self,
|
||||||
_engine_state: &EngineState,
|
_engine_state: &EngineState,
|
||||||
|
Loading…
Reference in New Issue
Block a user