mirror of
https://github.com/nushell/nushell
synced 2024-12-26 21:13:19 +00:00
Fix CI failures after PR merge conflicts (#7072)
This commit is contained in:
parent
53a9264b67
commit
aed8d3800b
3 changed files with 5 additions and 15 deletions
4
Cargo.lock
generated
4
Cargo.lock
generated
|
@ -2765,8 +2765,8 @@ dependencies = [
|
||||||
"num-format",
|
"num-format",
|
||||||
"serde",
|
"serde",
|
||||||
"serde_json",
|
"serde_json",
|
||||||
"strum 0.24.1",
|
"strum",
|
||||||
"strum_macros 0.24.3",
|
"strum_macros",
|
||||||
"sys-locale",
|
"sys-locale",
|
||||||
"thiserror",
|
"thiserror",
|
||||||
"typetag",
|
"typetag",
|
||||||
|
|
|
@ -16,13 +16,7 @@ impl Command for SortBy {
|
||||||
|
|
||||||
fn signature(&self) -> nu_protocol::Signature {
|
fn signature(&self) -> nu_protocol::Signature {
|
||||||
Signature::build("sort-by")
|
Signature::build("sort-by")
|
||||||
.input_output_types(vec![
|
.input_output_types(vec![(Type::Table(vec![]), Type::Table(vec![]))])
|
||||||
(Type::Table(vec![]), Type::Table(vec![])),
|
|
||||||
(
|
|
||||||
Type::List(Box::new(Type::Any)),
|
|
||||||
Type::List(Box::new(Type::Any)),
|
|
||||||
),
|
|
||||||
])
|
|
||||||
.rest("columns", SyntaxShape::Any, "the column(s) to sort by")
|
.rest("columns", SyntaxShape::Any, "the column(s) to sort by")
|
||||||
.switch("reverse", "Sort in reverse order", Some('r'))
|
.switch("reverse", "Sort in reverse order", Some('r'))
|
||||||
.switch(
|
.switch(
|
||||||
|
|
|
@ -16,11 +16,7 @@ impl Command for Seq {
|
||||||
|
|
||||||
fn signature(&self) -> Signature {
|
fn signature(&self) -> Signature {
|
||||||
Signature::build("seq")
|
Signature::build("seq")
|
||||||
.input_output_types(vec![
|
.input_output_types(vec![(Type::Nothing, Type::List(Box::new(Type::Number)))])
|
||||||
(Type::Nothing, Type::List(Box::new(Type::Number))),
|
|
||||||
// -s flag
|
|
||||||
(Type::Nothing, Type::String),
|
|
||||||
])
|
|
||||||
.rest("rest", SyntaxShape::Number, "sequence values")
|
.rest("rest", SyntaxShape::Number, "sequence values")
|
||||||
.category(Category::Generators)
|
.category(Category::Generators)
|
||||||
}
|
}
|
||||||
|
@ -83,7 +79,7 @@ impl Command for Seq {
|
||||||
Example {
|
Example {
|
||||||
description: "sequence 1 to 5, then convert to a string with a pipe separator",
|
description: "sequence 1 to 5, then convert to a string with a pipe separator",
|
||||||
example: "seq 1 5 | str join '|'",
|
example: "seq 1 5 | str join '|'",
|
||||||
result: Some(Value::test_string("1|2|3|4|5")),
|
result: None,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue