-
Notifications
You must be signed in to change notification settings - Fork 26
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
chore(dbt-sync): Allow the specification of dbt models using their path #242
Conversation
Would this allow us to pass the file list like this?
|
@dweaver33 not really, you would have to add one --select models/my_model.sql --select models/my_model2.sql --select models/my_model3.sql |
Ah, ok. I think I can work with this limitation. |
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.
This is awesome!
@Vitor-Avila, what's the timeline for cutting a release with this PR in it? We are eagerly awaiting. 😄 |
@dweaver33 wait no more! Just released version |
Thank you! We'll be testing over the next few weeks |
This PR adds the ability to specify the models that should be synced using their relative path. Both specifying files (for example
--select models/my_model.sql
) and folders (for example--select models/prod
) work. When selecting a folder, it supports the inclusion or not of the last trailing slash(--select models/prod == --select models/prod/
).It's also possible to use
*
after the folder name, however for this approach it's required to pass the argument as a string ->--select "models/prod/*"
otherwise the terminal automatically creates one argument per file, breaking the CLI.Implements #217 and #171.