-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Example click API usage #6307
Example click API usage #6307
Conversation
Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the contributing guide. |
055fded
to
69d9b04
Compare
core/dbt/docs/source/index.rst
Outdated
dbt_cli.commands[command].invoke(ctx) | ||
|
||
|
||
For the full code example, you can refer to `example.py <https://github.com/dbt-labs/dbt-core/blob/feature/click-cli/core/dbt/cli/example.py>`_ |
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 am not sure what would be a more clear way of add this type of link to a file that doesn't exists yet, or always keep it up to date
@MichelleArk I thinking of directly using this PR for #6099, hope you don't mind! |
@iknox-fa this is updated with latest interface, and ready to review |
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.
LGTM
2844c00
to
1257216
Compare
resolves #6310
resolves #6099
Description
This PR introduces a script that will serve as a base to be iterated on as we work through API-ification so that it serves as a live spec of the API-ified effort. Currently implemented with
deps
but ideally swapped out withrun
as soon as that is available in the click API.Open Question(s)
Context
and invoking the relevant command. Should we provide a thin abstraction over this so callers don't need to be concerned with the details + extra dependency management of click?Checklist
changie new
to create a changelog entry