From b444c7bef96b998ccfffa74a4bfbccff5c739bb6 Mon Sep 17 00:00:00 2001 From: Filip Strozik Date: Mon, 20 May 2024 12:22:26 +0200 Subject: [PATCH] chore: Deprecate kyma-cli v2 (#2095) (#2096) * draft * update warning * Apply suggestions from code review * Update README.md --------- Co-authored-by: Krzysztof Kwiatosz Co-authored-by: Grzegorz Karaluch --- README.md | 4 ++++ cmd/main.go | 3 +++ 2 files changed, 7 insertions(+) diff --git a/README.md b/README.md index 6d7b93432..4040c77f8 100755 --- a/README.md +++ b/README.md @@ -2,6 +2,10 @@ # Kyma CLI +> [!WARNING] +> The Kyma CLI version `v2`, with all commands available within this version, is deprecated. We've started designing the `v3` commands that will be first released within the `alpha` command group. +> Read more about the decision [here](https://github.com/kyma-project/community/issues/872). + ## Overview Kyma CLI is a command line tool which supports [Kyma](https://github.com/kyma-project/kyma) developers. It provides a set of commands and flags you can use to: diff --git a/cmd/main.go b/cmd/main.go index bc552736c..9269c5006 100755 --- a/cmd/main.go +++ b/cmd/main.go @@ -1,6 +1,7 @@ package main import ( + "fmt" "os" "github.com/kyma-project/cli/cmd/kyma" @@ -8,6 +9,8 @@ import ( ) func main() { + fmt.Print("WARNING: All commands within v2 are deprecated. We are designing v3 of kyma CLI with a new set of commands that will be first released within alpha command group.\n\n") + command := kyma.NewCmd(cli.NewOptions()) err := command.Execute()