dbt-labs / dbt-completion.bash

Adds autocompletion to the dbt CLI
https://www.getdbt.com/
Apache License 2.0
116 stars 29 forks source link

Allow for manifest path to be set as an env var `DBT_MANIFEST_PATH` #16

Closed Lef-F closed 2 years ago

Lef-F commented 2 years ago

This dbt autocompletion tool is a must have for dbt users and devs. We use dbt in our airflow DAGs and thus have defined a custom path for the compilation results (target/) in dbt_project.yml.

This tiny PR adds support for the full path to the manifest.json to be specified as an environment variable DBT_MANIFEST_PATH. (+ some minor whitespace cleaning)

What do you think?

b-per commented 2 years ago

Thanks @Lef-F ! I will try it locally and merge it if all looks good!

Lef-F commented 2 years ago

Thanks for the feedback @b-per 🙏 Let me know what you think.

b-per commented 2 years ago

Thanks for the update @Lef-F ! I will try it again quickly today and will merge it after.

b-per commented 2 years ago

Thanks! I just merged it now.