Switch to "engine-p" (#3270)

* WIP

* WIP

* first builds

* Tests pass
This commit is contained in:
Jonathan Turner
2021-04-07 04:19:43 +12:00
committed by GitHub
parent ad1c4f5e39
commit 073e5727c6
262 changed files with 2269 additions and 2660 deletions

View File

@ -14,7 +14,6 @@ use bigdecimal::FromPrimitive;
pub struct SubCommand;
#[async_trait]
impl WholeStreamCommand for SubCommand {
fn name(&self) -> &str {
"math avg"
@ -28,8 +27,8 @@ impl WholeStreamCommand for SubCommand {
"Finds the average of a list of numbers or tables"
}
async fn run(&self, args: CommandArgs) -> Result<OutputStream, ShellError> {
run_with_function(RunnableContext::from_command_args(args), average).await
fn run(&self, args: CommandArgs) -> Result<OutputStream, ShellError> {
run_with_function(RunnableContext::from_command_args(args), average)
}
fn examples(&self) -> Vec<Example> {