mirror of
https://github.com/nushell/nushell.git
synced 2024-11-22 16:33:37 +01:00
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")
|
||||
.input_output_types(vec![
|
||||
(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::Table(vec![]), Type::Table(vec![])),
|
||||
])
|
||||
|
Loading…
Reference in New Issue
Block a user