forked from extern/nushell
Fix signature for math sum
(#9847)
This also supports filesize and duration. Filesize is actually used for a non-running example Work for #9812
This commit is contained in:
parent
ff8c3aa356
commit
152a541696
@ -16,6 +16,8 @@ impl Command for SubCommand {
|
|||||||
Signature::build("math sum")
|
Signature::build("math sum")
|
||||||
.input_output_types(vec![
|
.input_output_types(vec![
|
||||||
(Type::List(Box::new(Type::Number)), Type::Number),
|
(Type::List(Box::new(Type::Number)), Type::Number),
|
||||||
|
(Type::List(Box::new(Type::Duration)), Type::Duration),
|
||||||
|
(Type::List(Box::new(Type::Filesize)), Type::Filesize),
|
||||||
(Type::Range, Type::Number),
|
(Type::Range, Type::Number),
|
||||||
(Type::Table(vec![]), Type::Table(vec![])),
|
(Type::Table(vec![]), Type::Table(vec![])),
|
||||||
])
|
])
|
||||||
|
Loading…
Reference in New Issue
Block a user