func NewClusterCommand() *cobra.Command {
	cmd := &cobra.Command{
		Use:   "cluster",
		Short: "show the cluster information",
		Run:   showClusterCommandFunc,
	}
	cmd.AddCommand(NewClusterStatusCommand())
	return cmd
}
NewClusterCommand return a cluster subcommand of rootCmd
package command
import (
	"net/http"
	"github.com/spf13/cobra"
)
const clusterPrefix = "pd/api/v1/cluster"
const clusterStatusPrefix = "pd/api/v1/cluster/status"