dbt-labs / dbt-core

dbt enables data analysts and engineers to transform their data using the same practices that software engineers use to build applications.
https://getdbt.com
Apache License 2.0
9.96k stars 1.63k forks source link

Cleaner call of DBT CLI as Python Module #10848

Open vicmattos opened 1 month ago

vicmattos commented 1 month ago

Resolves #

Calling dbt.cli module without specifying main module.

Problem

Call DBT cli as module as dbt.cli.main

Solution

Create a __main__.py at the root of core/dbt/cli calling cli() from main.py.

Checklist

cla-bot[bot] commented 1 month ago

Thanks for your pull request, and welcome to our community! We require contributors to sign our Contributor License Agreement and we don't seem to have your signature on file. Check out this article for more information on why we have a CLA.

In order for us to review and merge your code, please submit the Individual Contributor License Agreement form attached above above. If you have questions about the CLA, or if you believe you've received this message in error, please reach out through a comment on this PR.

CLA has not been signed by users: @vicmattos

github-actions[bot] commented 1 month ago

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.