forked from extern/nushell
Deserialization and outputstream math commands (#3315)
* Output error when ls into a file without permission * math sqrt * added test to check fails when ls into prohibited dir * fix lint * math sqrt with tests and doc * trigger wasm build * Update filesystem_shell.rs * converted math commands to outputstream and new method for arg evaluation * fmt * clippy Co-authored-by: Jonathan Turner <jonathandturner@users.noreply.github.com>
This commit is contained in:
@ -27,7 +27,7 @@ impl WholeStreamCommand for SubCommand {
|
||||
"Finds the average of a list of numbers or tables"
|
||||
}
|
||||
|
||||
fn run_with_actions(&self, args: CommandArgs) -> Result<ActionStream, ShellError> {
|
||||
fn run(&self, args: CommandArgs) -> Result<OutputStream, ShellError> {
|
||||
run_with_function(args, average)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user