Rename old Base64 commands

This commit is contained in:
Andrej Kolchin 2024-07-24 12:01:44 +03:00
parent f7bc29d108
commit ed42fb8b92
4 changed files with 10 additions and 10 deletions

View File

@ -186,8 +186,8 @@ pub fn add_shell_command_context(mut engine_state: EngineState) -> EngineState {
Char,
Decode,
Encode,
DecodeBase64,
EncodeBase64,
DecodeBase64Old,
EncodeBase64Old,
DetectColumns,
Parse,
Split,

View File

@ -2,9 +2,9 @@ use super::base64::{operate, ActionType, Base64CommandArguments, CHARACTER_SET_D
use nu_engine::command_prelude::*;
#[derive(Clone)]
pub struct DecodeBase64;
pub struct DecodeBase64Old;
impl Command for DecodeBase64 {
impl Command for DecodeBase64Old {
fn name(&self) -> &str {
"decode base64"
}
@ -114,6 +114,6 @@ mod tests {
#[test]
fn test_examples() {
crate::test_examples(DecodeBase64)
crate::test_examples(DecodeBase64Old)
}
}

View File

@ -2,9 +2,9 @@ use super::base64::{operate, ActionType, Base64CommandArguments, CHARACTER_SET_D
use nu_engine::command_prelude::*;
#[derive(Clone)]
pub struct EncodeBase64;
pub struct EncodeBase64Old;
impl Command for EncodeBase64 {
impl Command for EncodeBase64Old {
fn name(&self) -> &str {
"encode base64"
}
@ -118,6 +118,6 @@ mod tests {
#[test]
fn test_examples() {
crate::test_examples(EncodeBase64)
crate::test_examples(EncodeBase64Old)
}
}

View File

@ -6,6 +6,6 @@ mod encode_base64;
mod encoding;
pub use self::decode::Decode;
pub use self::decode_base64::DecodeBase64;
pub use self::decode_base64::DecodeBase64Old;
pub use self::encode::Encode;
pub use self::encode_base64::EncodeBase64;
pub use self::encode_base64::EncodeBase64Old;