Runnable contexts move. (#3283)

* Engine extract first steps.

* Don't depend on ShellManager.
This commit is contained in:
Andrés N. Robalino
2021-04-08 13:51:12 -05:00
committed by GitHub
parent 09a1f5acb9
commit 2880109f31
15 changed files with 58 additions and 106 deletions

View File

@ -28,7 +28,7 @@ impl WholeStreamCommand for SubCommand {
}
fn run(&self, args: CommandArgs) -> Result<OutputStream, ShellError> {
run_with_function(RunnableContext::from_command_args(args), average)
run_with_function(args, average)
}
fn examples(&self) -> Vec<Example> {