Skip to content

Commit

Permalink
add use_unrendered_descriptions to refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
VDFaller committed Mar 21, 2024
1 parent 0b24696 commit d29a08d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/dbt_osmosis/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,12 @@ def wrapper(*args, **kwargs):
" my_value}'"
),
)
@click.option(
"--use-unrendered-descriptions",
is_flag=True,
help="If specified, will use unrendered column descriptions in the documentation."
"This is useful for propogating docs blocks"
)
@click.argument("models", nargs=-1)
def refactor(
target: Optional[str] = None,
Expand All @@ -181,6 +187,7 @@ def refactor(
models: Optional[List[str]] = None,
profile: Optional[str] = None,
vars: Optional[str] = None,
use_unrendered_descriptions: bool = False,
):
"""Executes organize which syncs yaml files with database schema and organizes the dbt models
directory, reparses the project, then executes document passing down inheritable documentation
Expand Down Expand Up @@ -210,6 +217,7 @@ def refactor(
add_progenitor_to_meta=add_progenitor_to_meta,
profile=profile,
vars=vars,
use_unrendered_descriptions=use_unrendered_descriptions,
)

# Conform project structure & bootstrap undocumented models injecting columns
Expand Down

0 comments on commit d29a08d

Please sign in to comment.