diff --git a/crates/nu-command/src/default_context.rs b/crates/nu-command/src/default_context.rs index fb80c7989..4b17fa412 100644 --- a/crates/nu-command/src/default_context.rs +++ b/crates/nu-command/src/default_context.rs @@ -103,6 +103,7 @@ pub fn create_default_context() -> EngineState { // Misc bind_command! { + Source, Tutor, }; @@ -443,7 +444,6 @@ pub fn create_default_context() -> EngineState { MathEvalDeprecated, OldAlias, RPadDeprecated, - Source, StrCollectDeprecated, StrDatetimeDeprecated, StrDecimalDeprecated, diff --git a/crates/nu-command/src/deprecated/mod.rs b/crates/nu-command/src/deprecated/mod.rs index a63676303..241fa159a 100644 --- a/crates/nu-command/src/deprecated/mod.rs +++ b/crates/nu-command/src/deprecated/mod.rs @@ -6,7 +6,6 @@ mod lpad; mod math_eval; mod old_alias; mod rpad; -mod source; mod str_datetime; mod str_decimal; mod str_find_replace; @@ -20,7 +19,6 @@ pub use lpad::LPadDeprecated; pub use math_eval::SubCommand as MathEvalDeprecated; pub use old_alias::OldAlias; pub use rpad::RPadDeprecated; -pub use source::Source; pub use str_datetime::StrDatetimeDeprecated; pub use str_decimal::StrDecimalDeprecated; pub use str_find_replace::StrFindReplaceDeprecated; diff --git a/crates/nu-command/src/misc/mod.rs b/crates/nu-command/src/misc/mod.rs index 76df7f693..5c632e00e 100644 --- a/crates/nu-command/src/misc/mod.rs +++ b/crates/nu-command/src/misc/mod.rs @@ -1,3 +1,5 @@ +mod source; mod tutor; +pub use source::Source; pub use tutor::Tutor; diff --git a/crates/nu-command/src/deprecated/source.rs b/crates/nu-command/src/misc/source.rs similarity index 100% rename from crates/nu-command/src/deprecated/source.rs rename to crates/nu-command/src/misc/source.rs