前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
package cmd import ( "fmt"
"github.com/phodal/coca/config"
"github.com/spf13/cobra" ) func init() { rootCmd.AddCommand(versionCmd) } var versionCmd = &cobra.Command{ Use: "version",
Short: "version",
Run: func(cmd *cobra.Command, args []string) { fmt.Println("Coca Version: " + config.VERSION + " -- HEAD") }, }