github.com/kubeshop/testkube@v1.17.23/cmd/kubectl-testkube/commands/cloud.go (about) 1 package commands 2 3 import ( 4 "github.com/spf13/cobra" 5 6 "github.com/kubeshop/testkube/cmd/kubectl-testkube/commands/pro" 7 "github.com/kubeshop/testkube/pkg/ui" 8 ) 9 10 func NewCloudCmd() *cobra.Command { 11 12 cmd := &cobra.Command{ 13 Use: "cloud", 14 Deprecated: "Use `testkube pro` instead", 15 Hidden: true, 16 Short: "[Deprecated] Testkube Cloud commands", 17 Aliases: []string{"cl"}, 18 PersistentPreRun: func(cmd *cobra.Command, args []string) { 19 ui.Errf("You are using a deprecated command, please switch to `testkube pro` prefix.\n\n") 20 }, 21 } 22 23 cmd.AddCommand(pro.NewConnectCmd()) 24 cmd.AddCommand(pro.NewDisconnectCmd()) 25 cmd.AddCommand(pro.NewInitCmd()) 26 cmd.AddCommand(pro.NewLoginCmd()) 27 28 return cmd 29 }