Begin directory contrib docs and split commands (#3650)

* Begin directory contrib docs and split commands

* Fix unused import warning
This commit is contained in:
JT
2021-06-19 12:06:44 +12:00
committed by GitHub
parent 4140834e4c
commit a74d05061d
261 changed files with 794 additions and 808 deletions

View File

@ -56,7 +56,7 @@ pub fn median(values: &[Value], name: &Tag) -> Result<Value, ShellError> {
sorted.push(item.clone());
}
crate::commands::sort_by::sort(&mut sorted, &[], name, false)?;
crate::commands::filters::sort_by::sort(&mut sorted, &[], name, false)?;
match take {
Pick::Median => {

View File

@ -59,7 +59,7 @@ pub fn mode(values: &[Value], name: &Tag) -> Result<Value, ShellError> {
}
}
crate::commands::sort_by::sort(&mut modes, &[], name, false)?;
crate::commands::filters::sort_by::sort(&mut modes, &[], name, false)?;
Ok(UntaggedValue::Table(modes).into_value(name))
}