package main

import (
	"github.com/tidbcloud/tiinf/monitor/tilog"
	"go.uber.org/zap"

	"github.com/tidbcloud/tidb-management-service/tidb-mgmt-service/cmd/mgmt-cli/cmd"
)

func main() {
	rootCmd := cmd.NewRootCmd()

	if err := rootCmd.Execute(); err != nil {
		tilog.Error(rootCmd.Context(), "execute ctl failed", zap.String("error", err.Error()))
	}
}
