Rename old Base64 commands
This commit is contained in:
parent
f7bc29d108
commit
ed42fb8b92
|
@ -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,
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user