1
0
mirror of https://github.com/nushell/nushell.git synced 2025-04-26 22:28:19 +02:00

REFACTOR: move source out of deprecated commands ()

# 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
crates/nu-command/src

View File

@ -103,6 +103,7 @@ pub fn create_default_context() -> EngineState {
// Misc // Misc
bind_command! { bind_command! {
Source,
Tutor, Tutor,
}; };
@ -443,7 +444,6 @@ pub fn create_default_context() -> EngineState {
MathEvalDeprecated, MathEvalDeprecated,
OldAlias, OldAlias,
RPadDeprecated, RPadDeprecated,
Source,
StrCollectDeprecated, StrCollectDeprecated,
StrDatetimeDeprecated, StrDatetimeDeprecated,
StrDecimalDeprecated, StrDecimalDeprecated,

View File

@ -6,7 +6,6 @@ mod lpad;
mod math_eval; mod math_eval;
mod old_alias; mod old_alias;
mod rpad; mod rpad;
mod source;
mod str_datetime; mod str_datetime;
mod str_decimal; mod str_decimal;
mod str_find_replace; mod str_find_replace;
@ -20,7 +19,6 @@ pub use lpad::LPadDeprecated;
pub use math_eval::SubCommand as MathEvalDeprecated; pub use math_eval::SubCommand as MathEvalDeprecated;
pub use old_alias::OldAlias; pub use old_alias::OldAlias;
pub use rpad::RPadDeprecated; pub use rpad::RPadDeprecated;
pub use source::Source;
pub use str_datetime::StrDatetimeDeprecated; pub use str_datetime::StrDatetimeDeprecated;
pub use str_decimal::StrDecimalDeprecated; pub use str_decimal::StrDecimalDeprecated;
pub use str_find_replace::StrFindReplaceDeprecated; pub use str_find_replace::StrFindReplaceDeprecated;

View File

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