Skip to content

Commit

Permalink
Add python to git execute help (#1741)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-turbaszek authored Oct 18, 2024
1 parent ac6d4d1 commit 1057c80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/snowflake/cli/_plugins/git/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
7 changes: 4 additions & 3 deletions tests/__snapshots__/test_help_messages.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down Expand Up @@ -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. |
Expand Down Expand Up @@ -9787,7 +9788,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. |
Expand Down

0 comments on commit 1057c80

Please sign in to comment.