forked from extern/nushell
Add a module command
This commit is contained in:
@ -7,7 +7,7 @@ use nu_protocol::{
|
||||
|
||||
use crate::{
|
||||
where_::Where, Alias, Benchmark, BuildString, Def, Do, Each, External, For, Git, GitCheckout,
|
||||
If, Length, Let, LetEnv, Lines, ListGitBranches, Ls, Table,
|
||||
If, Length, Let, LetEnv, Lines, ListGitBranches, Ls, Module, Table,
|
||||
};
|
||||
|
||||
pub fn create_default_context() -> Rc<RefCell<EngineState>> {
|
||||
@ -46,6 +46,8 @@ pub fn create_default_context() -> Rc<RefCell<EngineState>> {
|
||||
|
||||
working_set.add_decl(Box::new(Ls));
|
||||
|
||||
working_set.add_decl(Box::new(Module));
|
||||
|
||||
working_set.add_decl(Box::new(Table));
|
||||
|
||||
working_set.add_decl(Box::new(External));
|
||||
|
@ -16,6 +16,7 @@ mod lines;
|
||||
mod list_git_branches;
|
||||
mod ls;
|
||||
mod run_external;
|
||||
mod module;
|
||||
mod table;
|
||||
mod where_;
|
||||
|
||||
@ -37,4 +38,5 @@ pub use lines::Lines;
|
||||
pub use list_git_branches::ListGitBranches;
|
||||
pub use ls::Ls;
|
||||
pub use run_external::External;
|
||||
pub use module::Module;
|
||||
pub use table::Table;
|
||||
|
Reference in New Issue
Block a user