Skip to content

Commit 34faf26

Browse files
Update deprecation notice (#671)
Co-authored-by: PaulCornellDB <paul.cornell@databricks.com>
1 parent 2f8242d commit 34faf26

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

databricks_cli/cli.py

+5-9
Original file line numberDiff line numberDiff line change
@@ -175,16 +175,12 @@ def main():
175175
except click.ClickException as e:
176176
e.show()
177177
message = """
178-
It seems like you might have entered an invalid command or used invalid flags.
178+
Warning: The version of the CLI you are using is deprecated.
179+
To migrate to the new CLI, see https://docs.databricks.com/dev-tools/cli/migrate.html.
179180
180-
The version of the CLI you're using is v{}.
181-
182-
If you're trying to invoke the new version of our CLI, please note that the commands and
183-
flags might be different. To help you transition, we've created a migration guide that
184-
explains these changes and how to adapt your command line arguments accordingly.
185-
186-
You can find the migration guide at: https://docs.databricks.com/dev-tools/cli/migrate.html
187-
""".format(version)
181+
In the new CLI, commands and flags might be different.
182+
The preceding migration guide provides guidance about how to adapt your commands accordingly.
183+
"""
188184
click.echo(click.style(message, fg='yellow'), err=True)
189185
sys.exit(e.exit_code)
190186
except click.Abort:

0 commit comments

Comments
 (0)