Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add python to git execute help #1741

Merged
merged 1 commit into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -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. |
Expand Down
Loading