From d6a9fb0e4013ba0e2d5f36e6bbf0b39f1221acab Mon Sep 17 00:00:00 2001 From: Ian Manske Date: Fri, 7 Jun 2024 13:03:31 +0000 Subject: [PATCH] Fix display formatting for command type in `help commands` (#12996) # Description Related to #12832, this PR changes the way `help commands` displays the command type to be consistent with `scope commands` and `which`. # User-Facing Changes Technically a breaking change since the `help commands` output can now be different. --- crates/nu-command/src/help/help_commands.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/nu-command/src/help/help_commands.rs b/crates/nu-command/src/help/help_commands.rs index f2440cc36f..f067a9fdcb 100644 --- a/crates/nu-command/src/help/help_commands.rs +++ b/crates/nu-command/src/help/help_commands.rs @@ -122,7 +122,7 @@ fn build_help_commands(engine_state: &EngineState, span: Span) -> Vec { let usage = sig.usage; let search_terms = sig.search_terms; - let command_type = format!("{:?}", decl.command_type()).to_ascii_lowercase(); + let command_type = decl.command_type().to_string(); // Build table of parameters let param_table = {