Skip to content

Commit

Permalink
chore: removed duplicated cloud-pro code
Browse files Browse the repository at this point in the history
  • Loading branch information
exu authored and vsukhin committed Mar 14, 2024
1 parent d2396b6 commit 366477a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 513 deletions.
14 changes: 7 additions & 7 deletions cmd/kubectl-testkube/commands/cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package commands
import (
"github.com/spf13/cobra"

"github.com/kubeshop/testkube/cmd/kubectl-testkube/commands/cloud"
"github.com/kubeshop/testkube/cmd/kubectl-testkube/commands/pro"
"github.com/kubeshop/testkube/pkg/ui"
)

Expand All @@ -15,15 +15,15 @@ func NewCloudCmd() *cobra.Command {
Hidden: true,
Short: "[Deprecated] Testkube Cloud commands",
Aliases: []string{"cl"},
Run: func(cmd *cobra.Command, args []string) {
ui.Warn("You are using a deprecated command, please switch to `testkube pro`.")
PersistentPreRun: func(cmd *cobra.Command, args []string) {
ui.Errf("You are using a deprecated command, please switch to `testkube pro` prefix.\n\n")
},
}

cmd.AddCommand(cloud.NewConnectCmd())
cmd.AddCommand(cloud.NewDisconnectCmd())
cmd.AddCommand(cloud.NewInitCmd())
cmd.AddCommand(cloud.NewLoginCmd())
cmd.AddCommand(pro.NewConnectCmd())
cmd.AddCommand(pro.NewDisconnectCmd())
cmd.AddCommand(pro.NewInitCmd())
cmd.AddCommand(pro.NewLoginCmd())

return cmd
}
215 changes: 0 additions & 215 deletions cmd/kubectl-testkube/commands/cloud/connect.go

This file was deleted.

120 changes: 0 additions & 120 deletions cmd/kubectl-testkube/commands/cloud/disconnect.go

This file was deleted.

Loading

0 comments on commit 366477a

Please sign in to comment.