1
0
mirror of https://github.com/nushell/nushell.git synced 2025-07-13 21:06:06 +02:00

Fix signature for math sum ()

This also supports filesize and duration.
Filesize is actually used for a non-running example

Work for 
This commit is contained in:
Stefan Holderbach
2023-07-28 23:34:47 +02:00
committed by GitHub
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![])),
])