* WIP getting scopes right

* finish adding initial support

* Finish with alias and add startup commands
This commit is contained in:
Jonathan Turner
2020-04-15 17:43:23 +12:00
committed by GitHub
parent e3da037b80
commit bd5836e25d
20 changed files with 332 additions and 38 deletions

View File

@ -3,7 +3,7 @@ use crate::commands::WholeStreamCommand;
use crate::prelude::*;
use nu_errors::ShellError;
use nu_protocol::{hir, hir::Expression, hir::Literal, hir::SpannedExpression};
use nu_protocol::{Primitive, ReturnSuccess, Signature, UntaggedValue, Value};
use nu_protocol::{Primitive, ReturnSuccess, Scope, Signature, UntaggedValue, Value};
use std::sync::atomic::AtomicBool;
use std::sync::atomic::Ordering;
@ -287,6 +287,7 @@ fn create_default_command_args(context: &RunnableContextWithoutInput) -> RawComm
span,
},
name_tag: context.name.clone(),
scope: Scope::empty(),
},
}
}