From 0786ddddbd92fdcb848efc52c7a186c4891244c8 Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Mon, 21 Aug 2023 07:46:44 -0500 Subject: [PATCH] allow `help` to return a `Type::Table` (#10082) # Description This PR changes the signature of the `help` command so that it can return a `Type::Table`. closes #10077 # User-Facing Changes # Tests + Formatting # After Submitting --- crates/nu-command/src/help/help_.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/nu-command/src/help/help_.rs b/crates/nu-command/src/help/help_.rs index 4637036bc7..dd73da69ca 100644 --- a/crates/nu-command/src/help/help_.rs +++ b/crates/nu-command/src/help/help_.rs @@ -20,7 +20,10 @@ impl Command for Help { fn signature(&self) -> Signature { Signature::build("help") - .input_output_types(vec![(Type::Nothing, Type::String)]) + .input_output_types(vec![ + (Type::Nothing, Type::String), + (Type::Nothing, Type::Table(vec![])), + ]) .rest( "rest", SyntaxShape::String,