-
Notifications
You must be signed in to change notification settings - Fork 101
Add --exclude-from and --include-from flags to sync command #2660
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I expect --include-from
to be almost identical, could you include it in this PR?
Separately, I would prefer if we not use .databricksignore
even in our test files. It implies (to me) there are semantics associated with this file name, even though that's something we explicitly don't want.
6ba54a9
to
76acd9b
Compare
…isting / missing) 2) refers to exact directory (existing / missing) 3) contains "**"
## Release v0.249.0 ### CLI * Added `exclude-from` and `include-from` flags support to sync command ([#2660](#2660)) ### Bundles * Correctly translate paths to local requirements.txt file in environment dependencies ([#2736](#2736)) * Check for running resources with --fail-on-active-runs before any mutative operation during deploy ([#2743](#2743))
Why
Exclude-from flag allows users to exclude file patterns from sync operations by providing a .gitignore -like file containing file patterns that should be excluded from sync
Usage:
$ databricks sync <SRC> <DEST> --exclude-from .my-exclude-file
$ databricks sync <SRC> <DEST> --include-from .my-include-file
Tests