mirror of
https://github.com/nushell/nushell.git
synced 2024-11-29 20:03:54 +01:00
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"
|
||||
}
|
||||
|
||||
fn search_terms(&self) -> Vec<&str> {
|
||||
vec!["floor"]
|
||||
}
|
||||
|
||||
fn run(
|
||||
&self,
|
||||
engine_state: &EngineState,
|
||||
|
@ -23,7 +23,7 @@ impl Command for SubCommand {
|
||||
}
|
||||
|
||||
fn search_terms(&self) -> Vec<&str> {
|
||||
vec!["middle", "average"]
|
||||
vec!["middle", "median"]
|
||||
}
|
||||
|
||||
fn run(
|
||||
|
@ -44,7 +44,7 @@ impl Command for SubCommand {
|
||||
}
|
||||
|
||||
fn search_terms(&self) -> Vec<&str> {
|
||||
vec!["common", "often", "average"]
|
||||
vec!["common", "often"]
|
||||
}
|
||||
|
||||
fn run(
|
||||
|
@ -21,6 +21,10 @@ impl Command for SubCommand {
|
||||
"Finds the variance of a list of numbers or tables"
|
||||
}
|
||||
|
||||
fn search_terms(&self) -> Vec<&str> {
|
||||
vec!["deviation", "dispersion", "variance", "variation"]
|
||||
}
|
||||
|
||||
fn run(
|
||||
&self,
|
||||
_engine_state: &EngineState,
|
||||
|
Loading…
Reference in New Issue
Block a user