diff --git a/src/dbt_osmosis/main.py b/src/dbt_osmosis/main.py index 62ed349..a60028f 100644 --- a/src/dbt_osmosis/main.py +++ b/src/dbt_osmosis/main.py @@ -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, @@ -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 @@ -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