Skip to content

Commit

Permalink
Add deprecation warning and notice to flyte-cli (#730)
Browse files Browse the repository at this point in the history
* Add deprecation warning and notice to flyte-cli

Signed-off-by: Eduardo Apolinario <[email protected]>

* Linting

Signed-off-by: Eduardo Apolinario <[email protected]>

Co-authored-by: Eduardo Apolinario <[email protected]>
  • Loading branch information
eapolinario and eapolinario authored Nov 1, 2021
1 parent d33fb75 commit 751425d
Showing 1 changed file with 14 additions and 2 deletions.
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

0 comments on commit 751425d

Please sign in to comment.