github.com/kubeshop/testkube@v1.17.23/cmd/kubectl-testkube/commands/disable.go (about) 1 package commands 2 3 import ( 4 "github.com/spf13/cobra" 5 6 "github.com/kubeshop/testkube/cmd/kubectl-testkube/commands/oauth" 7 "github.com/kubeshop/testkube/cmd/kubectl-testkube/commands/telemetry" 8 "github.com/kubeshop/testkube/pkg/ui" 9 ) 10 11 func NewDisableCmd() *cobra.Command { 12 cmd := &cobra.Command{ 13 Use: "disable <feature>", 14 Aliases: []string{"off"}, 15 Short: "Disable feature", 16 Run: func(cmd *cobra.Command, args []string) { 17 err := cmd.Help() 18 ui.PrintOnError("Displaying help", err) 19 }, 20 } 21 22 cmd.AddCommand(telemetry.NewDisableTelemetryCmd()) 23 cmd.AddCommand(oauth.NewDisableOAuthCmd()) 24 25 return cmd 26 }