Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update deprecation notice #671

Merged
merged 3 commits into from
Oct 4, 2023
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 8 additions & 10 deletions databricks_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,16 +175,14 @@ def main():
except click.ClickException as e:
e.show()
message = """
It seems like you might have entered an invalid command or used invalid flags.

The version of the CLI you're using is v{}.

If you're trying to invoke the new version of our CLI, please note that the commands and
flags might be different. To help you transition, we've created a migration guide that
explains these changes and how to adapt your command line arguments accordingly.

You can find the migration guide at: https://docs.databricks.com/dev-tools/cli/migrate.html
""".format(version)
DEPRECATION NOTICE: Please note the version of the CLI you are using is deprecated.
See https://docs.databricks.com/dev-tools/cli/migrate.html for migrating to the
new CLI.

Note that in new versions of the CLI, commands and flags might be different.
The migration guide above provides guidance on how to adapt your command line
arguments accordingly.
"""
click.echo(click.style(message, fg='yellow'), err=True)
sys.exit(e.exit_code)
except click.Abort:
Expand Down