diff --git a/crates/nu-command/src/strings/encode_decode/decode_base64.rs b/crates/nu-command/src/strings/encode_decode/decode_base64.rs index 9896d89b9..21ad5600e 100644 --- a/crates/nu-command/src/strings/encode_decode/decode_base64.rs +++ b/crates/nu-command/src/strings/encode_decode/decode_base64.rs @@ -2,7 +2,7 @@ use super::base64::{operate, ActionType, CHARACTER_SET_DESC}; use nu_protocol::ast::Call; use nu_protocol::engine::{Command, EngineState, Stack}; use nu_protocol::{ - Category, Example, PipelineData, ShellError, Signature, Span, SyntaxShape, Type, Value, + Category, Example, PipelineData, ShellError, Signature, Span, SyntaxShape, Value, }; #[derive(Clone)] @@ -69,14 +69,6 @@ impl Command for DecodeBase64 { ) -> Result { operate(ActionType::Decode, engine_state, stack, call, input) } - - fn input_type(&self) -> Type { - Type::Any - } - - fn output_type(&self) -> Type { - Type::Any - } } #[cfg(test)] diff --git a/crates/nu-command/src/strings/encode_decode/encode_base64.rs b/crates/nu-command/src/strings/encode_decode/encode_base64.rs index 6ef29fb96..b0e4afd73 100644 --- a/crates/nu-command/src/strings/encode_decode/encode_base64.rs +++ b/crates/nu-command/src/strings/encode_decode/encode_base64.rs @@ -26,6 +26,7 @@ impl Command for EncodeBase64 { SyntaxShape::CellPath, "optionally base64 encode data by column paths", ) + .output_type(Type::String) .category(Category::Hash) } @@ -57,14 +58,6 @@ impl Command for EncodeBase64 { ) -> Result { operate(ActionType::Encode, engine_state, stack, call, input) } - - fn input_type(&self) -> Type { - Type::Any - } - - fn output_type(&self) -> Type { - Type::String - } } #[cfg(test)]