Add a module command

This commit is contained in:
Jakub Žádník
2021-09-26 01:59:18 +03:00
parent a176f12c9e
commit e9f1575924
3 changed files with 32 additions and 7 deletions

View File

@ -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));

View File

@ -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;