github.com/kubeshop/testkube@v1.17.23/cmd/kubectl-testkube/commands/enable.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 NewEnableCmd() *cobra.Command {
    12  	cmd := &cobra.Command{
    13  		Use:     "enable <feature>",
    14  		Aliases: []string{"on"},
    15  		Short:   "Enable 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.NewEnableTelemetryCmd())
    23  	cmd.AddCommand(oauth.NewEnableOAuthCmd())
    24  
    25  	return cmd
    26  }