Files
sailpoint-cli/cmd/cluster/cluster.go
james.haytko c16eb226cb CLI 2.0 edits.
2023-11-13 12:24:00 -06:00

35 lines
652 B
Go

package cluster
import (
_ "embed"
"github.com/sailpoint-oss/sailpoint-cli/cmd/cluster/logConfig"
"github.com/sailpoint-oss/sailpoint-cli/internal/util"
"github.com/spf13/cobra"
)
//go:embed cluster.md
var clusterHelp string
func NewClusterCommand() *cobra.Command {
help := util.ParseHelp(clusterHelp)
cmd := &cobra.Command{
Use: "cluster",
Short: "Manage clusters in IdentityNow",
Long: help.Long,
Example: help.Example,
Aliases: []string{"cl"},
Run: func(cmd *cobra.Command, args []string) {
cmd.Help()
},
}
cmd.AddCommand(
newListCommand(),
newGetCommand(),
logConfig.NewLogCommand(),
)
return cmd
}