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

Add deprecation warning and notice to flyte-cli #730

Merged
merged 2 commits into from
Nov 1, 2021
Merged
Changes from all 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
16 changes: 14 additions & 2 deletions flytekit/clis/flyte_cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,19 @@


def _welcome_message():
_click.secho("Welcome to Flyte CLI! Version: {}".format(_tt(__version__)), bold=True)
_click.secho(
"\n################################################################################################################################",
bold=True,
)
_click.secho(
"# flyte-cli is being deprecated in favor of flytectl. More details about flytectl in https://docs.flyte.org/projects/flytectl/ #",
bold=True,
)
_click.secho(
"################################################################################################################################\n",
bold=True,
)
_click.secho("Welcome to Flyte CLI! Version: {}\n".format(_tt(__version__)), bold=True)


def _get_user_filepath_home():
Expand Down Expand Up @@ -595,7 +607,7 @@ def make_context(self, cmd_name, args, parent=None):
"the sub-command's parameter takes precedence.",
)
@_insecure_option
@_click.group("flyte-cli")
@_click.group("flyte-cli", deprecated=True)
@_click.pass_context
def _flyte_cli(ctx, host, config, project, domain, name, insecure):
"""
Expand Down