From 207f1390be36523a623470a6f263154e7c535bbc Mon Sep 17 00:00:00 2001 From: Tomasz Urbaszek Date: Fri, 18 Oct 2024 08:43:23 +0200 Subject: [PATCH] Add python to git execute help --- src/snowflake/cli/_plugins/git/commands.py | 2 +- tests/__snapshots__/test_help_messages.ambr | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/snowflake/cli/_plugins/git/commands.py b/src/snowflake/cli/_plugins/git/commands.py index 1f77644ec6..ef52bebc66 100644 --- a/src/snowflake/cli/_plugins/git/commands.py +++ b/src/snowflake/cli/_plugins/git/commands.py @@ -335,7 +335,7 @@ def execute( """ Execute immediate all files from the repository path. Files can be filtered with glob like pattern, e.g. `@my_repo/branches/main/*.sql`, `@my_repo/branches/main/dev/*`. Only files with `.sql` - extension will be executed. + or `.py` extension will be executed. """ results = GitManager().execute( stage_path_str=repository_path, diff --git a/tests/__snapshots__/test_help_messages.ambr b/tests/__snapshots__/test_help_messages.ambr index aef4b71f88..f53d0dfbdf 100644 --- a/tests/__snapshots__/test_help_messages.ambr +++ b/tests/__snapshots__/test_help_messages.ambr @@ -1983,7 +1983,8 @@ Execute immediate all files from the repository path. Files can be filtered with glob like pattern, e.g. @my_repo/branches/main/*.sql, - @my_repo/branches/main/dev/*. Only files with .sql extension will be executed. + @my_repo/branches/main/dev/*. Only files with .sql or .py extension will be + executed. +- Arguments ------------------------------------------------------------------+ | * repository_path TEXT Path to git repository stage with scope | @@ -2672,7 +2673,7 @@ | execute Execute immediate all files from the repository path. Files | | can be filtered with glob like pattern, e.g. | | @my_repo/branches/main/*.sql, @my_repo/branches/main/dev/*. | - | Only files with .sql extension will be executed. | + | Only files with .sql or .py extension will be executed. | | fetch Fetch changes from origin to Snowflake repository. | | list Lists all available git repositories. | | list-branches List all branches in the repository. | @@ -9786,7 +9787,7 @@ | execute Execute immediate all files from the repository path. Files | | can be filtered with glob like pattern, e.g. | | @my_repo/branches/main/*.sql, @my_repo/branches/main/dev/*. | - | Only files with .sql extension will be executed. | + | Only files with .sql or .py extension will be executed. | | fetch Fetch changes from origin to Snowflake repository. | | list Lists all available git repositories. | | list-branches List all branches in the repository. |