package operator

import (
	"github.com/spf13/cobra"

	"github.com/openshift/cluster-openshift-controller-manager-operator/pkg/operator"
	"github.com/openshift/cluster-openshift-controller-manager-operator/pkg/version"
	"github.com/openshift/library-go/pkg/controller/controllercmd"
)

func NewOperator() *cobra.Command {
	cmd := controllercmd.
		NewControllerCommandConfig("openshift-controller-manager-operator", version.Get(), operator.RunOperator).
		NewCommand()
	cmd.Use = "operator"
	cmd.Short = "Start the Cluster openshift-controller-manager Operator"

	return cmd
}
