From b1874006e6697057ea31e168f43cd3f56de70d6d Mon Sep 17 00:00:00 2001 From: Jeremy Cohen Date: Wed, 28 Jun 2023 11:27:34 +0200 Subject: [PATCH] Add target_path to more cli commands that use it (#7647) (#7961) Co-authored-by: Daniel Reeves <31971762+dwreeves@users.noreply.github.com> --- .changes/unreleased/Fixes-20230516-152644.yaml | 6 ++++++ core/dbt/cli/main.py | 5 +++++ 2 files changed, 11 insertions(+) create mode 100644 .changes/unreleased/Fixes-20230516-152644.yaml diff --git a/.changes/unreleased/Fixes-20230516-152644.yaml b/.changes/unreleased/Fixes-20230516-152644.yaml new file mode 100644 index 00000000000..f68cf8dc842 --- /dev/null +++ b/.changes/unreleased/Fixes-20230516-152644.yaml @@ -0,0 +1,6 @@ +kind: Fixes +body: Add --target-path to more CLI subcommands +time: 2023-05-16T15:26:44.557072-04:00 +custom: + Author: dwreeves + Issue: "7646" diff --git a/core/dbt/cli/main.py b/core/dbt/cli/main.py index 87c8424bfee..9bc42164490 100644 --- a/core/dbt/cli/main.py +++ b/core/dbt/cli/main.py @@ -213,6 +213,7 @@ def build(ctx, **kwargs): @p.profiles_dir @p.project_dir @p.target +@p.target_path @p.vars @requires.postflight @requires.preflight @@ -283,6 +284,7 @@ def docs_generate(ctx, **kwargs): @p.profiles_dir @p.project_dir @p.target +@p.target_path @p.vars @requires.postflight @requires.preflight @@ -476,6 +478,7 @@ def init(ctx, **kwargs): @p.state @p.deprecated_state @p.target +@p.target_path @p.vars @requires.postflight @requires.preflight @@ -576,6 +579,7 @@ def run(ctx, **kwargs): @p.profiles_dir @p.project_dir @p.target +@p.target_path @p.vars @requires.postflight @requires.preflight @@ -690,6 +694,7 @@ def source(ctx, **kwargs): @p.state @p.deprecated_state @p.target +@p.target_path @p.threads @p.vars @requires.postflight