package cmd

import (
	"fmt"

	"github.com/pingcap/tidb-enterprise/minimum-edition/ops-installer/pkg/utils"
	"github.com/spf13/cobra"
)

func init() {
	rootCmd.AddCommand(versionCmd)
}

var versionCmd = &cobra.Command{
	Use:   "version",
	Short: "Print the version number of ops-installer",
	Run: func(cmd *cobra.Command, args []string) {
		fmt.Println(utils.GetRawInfo("ops-installer"))
	},
}
