From a093e668220a301b7fedc62f29d7fabecfae4105 Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Fri, 12 Jan 2024 13:26:40 -0600 Subject: [PATCH] update query web param --as-table from Table to List (#11531) # Description This is a small change that updates the `--as-table`/`-t` parameter to `SyntaxShape::List` instead of `SyntaxShape::Table`. It was always supposed to be a list of headers. Not sure where Table came from. # User-Facing Changes # Tests + Formatting # After Submitting --- crates/nu_plugin_query/src/nu/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/nu_plugin_query/src/nu/mod.rs b/crates/nu_plugin_query/src/nu/mod.rs index 298a1ad0cc..afc0c203f5 100644 --- a/crates/nu_plugin_query/src/nu/mod.rs +++ b/crates/nu_plugin_query/src/nu/mod.rs @@ -32,7 +32,7 @@ impl Plugin for Query { ) .named( "as-table", - SyntaxShape::Table(vec![]), + SyntaxShape::List(Box::new(SyntaxShape::String)), "find table based on column header list", Some('t'), )