package commands

import (
	"github.com/spf13/cobra"

	"github.com/argoproj/argo-cd/v3/common"
)

func NewCommand() *cobra.Command {
	command := &cobra.Command{
		Use:               common.CommandK8sAuth,
		Short:             "argocd-k8s-auth a set of commands to generate k8s auth token",
		DisableAutoGenTag: true,
		Run: func(c *cobra.Command, args []string) {
			c.HelpFunc()(c, args)
		},
	}

	command.AddCommand(newAWSCommand())
	command.AddCommand(newGCPCommand())
	command.AddCommand(newAzureCommand())

	return command
}
