Skip to content

Commit

Permalink
Add snow --help to test_help_messages (#821)
Browse files Browse the repository at this point in the history
* Add snow --help to test_help_messages

* update snapshot
  • Loading branch information
sfc-gh-pczajka committed Mar 5, 2024
1 parent 1e939d6 commit 64b637e
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
29 changes: 29 additions & 0 deletions tests/__snapshots__/test_help_messages.ambr
Original file line number Diff line number Diff line change
@@ -1,4 +1,33 @@
# serializer version: 1
# name: test_help_messages[]
'''

Usage: default [OPTIONS] COMMAND [ARGS]...

Snowflake CLI tool for developers.

╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --version Shows version of the Snowflake CLI │
│ --info Shows information about the Snowflake CLI │
│ --config-file FILE Specifies Snowflake CLI configuration file that │
│ should be used │
│ [default: None] │
│ --help -h Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ───────────────────────────────────────────────────────────────────╮
│ app Manages a Snowflake Native App │
│ connection Manages connections to Snowflake. │
│ object Manages Snowflake objects like warehouses and stages │
│ snowpark Manages procedures and functions. │
│ spcs Manages Snowpark Container Services compute pools, services, │
│ image registries, and image repositories. │
│ sql Executes Snowflake query. │
│ streamlit Manages Streamlit in Snowflake. │
╰──────────────────────────────────────────────────────────────────────────────╯


'''
# ---
# name: test_help_messages[app.bundle]
'''

Expand Down
1 change: 1 addition & 0 deletions tests/test_help_messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def _iter_through_commands(command, path):
yield from _iter_through_commands(subcommand, path)
path.pop()

yield [] # "snow" with no commands
builtin_plugins = load_only_builtin_command_plugins()
for plugin in builtin_plugins:
spec = plugin.command_spec
Expand Down

0 comments on commit 64b637e

Please sign in to comment.