From 13effd067f28628fc02613cc10c41a556032a4a1 Mon Sep 17 00:00:00 2001 From: Eduardo Apolinario <653394+eapolinario@users.noreply.github.com> Date: Mon, 1 Nov 2021 15:35:50 -0700 Subject: [PATCH] Add deprecation warning and notice to flyte-cli (#730) * Add deprecation warning and notice to flyte-cli Signed-off-by: Eduardo Apolinario * Linting Signed-off-by: Eduardo Apolinario Co-authored-by: Eduardo Apolinario Signed-off-by: Robert Everson --- flytekit/clis/flyte_cli/main.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/flytekit/clis/flyte_cli/main.py b/flytekit/clis/flyte_cli/main.py index 2e0bf67f83..3f6b954165 100644 --- a/flytekit/clis/flyte_cli/main.py +++ b/flytekit/clis/flyte_cli/main.py @@ -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(): @@ -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): """