Skip to content

Commit

Permalink
Add deprecation warning and notice to flyte-cli (flyteorg#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]>
Signed-off-by: Robert Everson <[email protected]>
  • Loading branch information
2 people authored and Robert Everson committed May 27, 2022
1 parent f6f3766 commit 13effd0
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 13effd0

Please sign in to comment.