REFACTOR: move source out of deprecated commands (#9060)

# Description
the plan of deprecating `source` never really came to conclusion, so i
propose to move it out of the deprecated commands in this PR.
i've moved it to `nu-command::misc`, which can be changed 👍 

# User-Facing Changes
```
$nothing
```

# Tests + Formatting
- 🟢 `toolkit fmt`
- 🟢 `toolkit clippy`
-  `toolkit test`
-  `toolkit test stdlib`

# After Submitting
```
$nothing
```
This commit is contained in:
Antoine Stevan 2023-05-04 00:02:03 +02:00 committed by GitHub
parent 1019acb7a3
commit 6bbe5b6255
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

@ -1,3 +1,5 @@
mod source;
mod tutor;
pub use source::Source;
pub use tutor::Tutor;