diff --git a/crates/nu-command/src/strings/str_/case/upcase.rs b/crates/nu-command/src/strings/str_/case/upcase.rs index a4d580502d..ffb6e24869 100644 --- a/crates/nu-command/src/strings/str_/case/upcase.rs +++ b/crates/nu-command/src/strings/str_/case/upcase.rs @@ -2,6 +2,7 @@ use nu_engine::CallExt; use nu_protocol::ast::Call; use nu_protocol::ast::CellPath; use nu_protocol::engine::{Command, EngineState, Stack}; +use nu_protocol::Category; use nu_protocol::{Example, PipelineData, ShellError, Signature, Span, SyntaxShape, Type, Value}; #[derive(Clone)] @@ -29,6 +30,7 @@ impl Command for SubCommand { SyntaxShape::CellPath, "For a data structure input, convert strings at the given cell paths", ) + .category(Category::Strings) } fn usage(&self) -> &str { diff --git a/crates/nu-command/src/strings/str_/substring.rs b/crates/nu-command/src/strings/str_/substring.rs index 44843e8311..c5ad1a6404 100644 --- a/crates/nu-command/src/strings/str_/substring.rs +++ b/crates/nu-command/src/strings/str_/substring.rs @@ -5,6 +5,7 @@ use nu_engine::CallExt; use nu_protocol::ast::Call; use nu_protocol::ast::CellPath; use nu_protocol::engine::{Command, EngineState, Stack}; +use nu_protocol::Category; use nu_protocol::{ Example, PipelineData, Range, ShellError, Signature, Span, SyntaxShape, Type, Value, }; @@ -69,6 +70,7 @@ impl Command for SubCommand { SyntaxShape::CellPath, "For a data structure input, turn strings at the given cell paths into substrings", ) + .category(Category::Strings) } fn usage(&self) -> &str { diff --git a/crates/nu-command/src/strings/str_/trim/trim_.rs b/crates/nu-command/src/strings/str_/trim/trim_.rs index 9fb994a0e0..99fe2ba756 100644 --- a/crates/nu-command/src/strings/str_/trim/trim_.rs +++ b/crates/nu-command/src/strings/str_/trim/trim_.rs @@ -1,5 +1,6 @@ use nu_cmd_base::input_handler::{operate, CmdArgument}; use nu_engine::CallExt; +use nu_protocol::Category; use nu_protocol::{ ast::{Call, CellPath}, engine::{Command, EngineState, Stack}, @@ -66,6 +67,7 @@ impl Command for SubCommand { "trims characters only from the end of the string", Some('r'), ) + .category(Category::Strings) } fn usage(&self) -> &str { "Trim whitespace or specific character."