Add export-env command (#6355)

* WIP Start export-env

* Add missing file

* Do not modify the parser

Let's leave that for later

* Enable tests for export-env; Fmt
This commit is contained in:
Jakub Žádník
2022-08-18 23:24:39 +03:00
committed by GitHub
parent 529c98085a
commit 5a56d47f25
8 changed files with 104 additions and 21 deletions

View File

@ -3,9 +3,9 @@ use nu_protocol::engine::{Command, EngineState, Stack};
use nu_protocol::{Category, Example, PipelineData, Signature, Span, SyntaxShape, Value};
#[derive(Clone)]
pub struct ExportEnv;
pub struct ExportEnvModule;
impl Command for ExportEnv {
impl Command for ExportEnvModule {
fn name(&self) -> &str {
"export env"
}

View File

@ -40,7 +40,7 @@ pub use export::ExportCommand;
pub use export_alias::ExportAlias;
pub use export_def::ExportDef;
pub use export_def_env::ExportDefEnv;
pub use export_env::ExportEnv;
pub use export_env::ExportEnvModule;
pub use export_extern::ExportExtern;
pub use export_use::ExportUse;
pub use extern_::Extern;