forked from extern/nushell
Remove EvaluationContext::from_args (#3604)
This commit is contained in:
@@ -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)?;
|
||||
|
@@ -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)?;
|
||||
|
Reference in New Issue
Block a user