mirror of
https://github.com/nushell/nushell.git
synced 2025-05-10 04:54:28 +02:00
revert command type signature change
This commit is contained in:
parent
f636e54af8
commit
9d510ff66c
@ -13,19 +13,7 @@ impl Command for Default {
|
|||||||
Signature::build("default")
|
Signature::build("default")
|
||||||
// TODO: Give more specific type signature?
|
// TODO: Give more specific type signature?
|
||||||
// TODO: Declare usage of cell paths in signature? (It seems to behave as if it uses cell paths)
|
// TODO: Declare usage of cell paths in signature? (It seems to behave as if it uses cell paths)
|
||||||
.input_output_types(vec![
|
.input_output_types(vec![(Type::Any, Type::Any)])
|
||||||
(Type::Nothing, Type::Any),
|
|
||||||
(Type::String, Type::Any),
|
|
||||||
(Type::record(), Type::Any),
|
|
||||||
(Type::list(Type::Any), Type::Any),
|
|
||||||
(Type::Number, Type::Number),
|
|
||||||
(Type::Closure, Type::Closure),
|
|
||||||
(Type::Filesize, Type::Filesize),
|
|
||||||
(Type::Bool, Type::Bool),
|
|
||||||
(Type::Date, Type::Date),
|
|
||||||
(Type::Duration, Type::Duration),
|
|
||||||
(Type::Range, Type::Range),
|
|
||||||
])
|
|
||||||
.required(
|
.required(
|
||||||
"default value",
|
"default value",
|
||||||
SyntaxShape::Any,
|
SyntaxShape::Any,
|
||||||
|
Loading…
Reference in New Issue
Block a user