gitee.com/quant1x/engine@v1.8.4/command/command_version.go (about)

     1  package command
     2  
     3  import (
     4  	"fmt"
     5  	cmder "github.com/spf13/cobra"
     6  )
     7  
     8  // CmdVersion 版本
     9  var CmdVersion = &cmder.Command{
    10  	Use:   "version",
    11  	Short: "显示版本号",
    12  	Run: func(cmd *cmder.Command, args []string) {
    13  		fmt.Println(MinVersion)
    14  	},
    15  }