From f4989e1b463b7ef7c77acac87f9383ffd00e961a Mon Sep 17 00:00:00 2001 From: Patryk Czajka Date: Thu, 4 Jul 2024 11:40:17 +0200 Subject: [PATCH] show create command (#1278) * show create command * update snapshots --- src/snowflake/cli/plugins/object/commands.py | 2 +- tests/__snapshots__/test_help_messages.ambr | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/snowflake/cli/plugins/object/commands.py b/src/snowflake/cli/plugins/object/commands.py index 8361e21901..05bc83ac54 100644 --- a/src/snowflake/cli/plugins/object/commands.py +++ b/src/snowflake/cli/plugins/object/commands.py @@ -132,7 +132,7 @@ def describe( ) -@app.command(name="create", requires_connection=True, hidden=True) +@app.command(name="create", requires_connection=True) def create( object_type: str = ObjectArgument, object_attributes: Optional[List[str]] = ObjectAttributesArgument, diff --git a/tests/__snapshots__/test_help_messages.ambr b/tests/__snapshots__/test_help_messages.ambr index 0b798dc0be..0ec9037f6c 100644 --- a/tests/__snapshots__/test_help_messages.ambr +++ b/tests/__snapshots__/test_help_messages.ambr @@ -2986,6 +2986,9 @@ | --help -h Show this message and exit. | +------------------------------------------------------------------------------+ +- Commands -------------------------------------------------------------------+ + | create Create an object of a given type. Check | + | documentation for the list of supported objects | + | and parameters. | | describe Provides description of an object of given type. | | drop Drops Snowflake object of given name and type. | | list Lists all available Snowflake objects of given | @@ -7907,6 +7910,9 @@ | --help -h Show this message and exit. | +------------------------------------------------------------------------------+ +- Commands -------------------------------------------------------------------+ + | create Create an object of a given type. Check | + | documentation for the list of supported objects | + | and parameters. | | describe Provides description of an object of given type. | | drop Drops Snowflake object of given name and type. | | list Lists all available Snowflake objects of given |