diff --git a/dbt_meshify/main.py b/dbt_meshify/main.py index 1cc0a39..0be5cce 100644 --- a/dbt_meshify/main.py +++ b/dbt_meshify/main.py @@ -392,7 +392,7 @@ def bump_version( if latest and increment: raise FatalMeshifyException( - "Cannot specify both --latest and --prerelease. Please choose one or the other." + "Cannot specify both --latest and --increment. Please choose one or the other." ) latest_version_behavior = LatestVersionBehavior.Prerelease @@ -463,7 +463,7 @@ def version( """ if latest and increment: raise FatalMeshifyException( - "Cannot specify both --latest and --prerelease. Please choose one or the other." + "Cannot specify both --latest and --increment. Please choose one or the other." ) latest_version_behavior = LatestVersionBehavior.Prerelease diff --git a/dbt_meshify/utilities/versioner.py b/dbt_meshify/utilities/versioner.py index 8e9b0e1..fdc331e 100644 --- a/dbt_meshify/utilities/versioner.py +++ b/dbt_meshify/utilities/versioner.py @@ -18,7 +18,7 @@ class LatestVersionBehavior(str, Enum): - """An operation describes the type of work being performed.""" + """The type of behavior applied to `latest_version` when updating model versions""" Prerelease = "prerelease" Increment = "increment" @@ -171,7 +171,6 @@ def bump_version( LatestVersionBehavior.Latest: greatest_version + 1, } - # import ipdb; ipdb.set_trace() new_latest_version_number = latest_version_number_map[latest_version_behavior] # Setup the new version definitions