Remove EvaluationContext::from_args (#3604)

This commit is contained in:
JT
2021-06-11 18:35:21 +12:00
committed by GitHub
parent 8ac572ed27
commit b9ca3b2039
32 changed files with 45 additions and 60 deletions

View File

@@ -30,7 +30,7 @@ impl WholeStreamCommand for SubCommand {
}
fn run(&self, args: CommandArgs) -> Result<OutputStream, ShellError> {
let ctx = Arc::new(EvaluationContext::from_args(&args));
let ctx = Arc::new(args.context.clone());
let tag = args.call_info.name_tag.clone();
let block: CapturedBlock = args.req(0)?;

View File

@@ -30,7 +30,7 @@ impl WholeStreamCommand for SubCommand {
}
fn run(&self, args: CommandArgs) -> Result<OutputStream, ShellError> {
let ctx = Arc::new(EvaluationContext::from_args(&args));
let ctx = Arc::new(args.context.clone());
let tag = args.call_info.name_tag.clone();
let block: CapturedBlock = args.req(0)?;