1 Star 0 Fork 0

吴文凯/gmodel

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
version.go 413 Bytes
一键复制 编辑 原始数据 按行查看 历史
吴文凯 提交于 2024-05-10 11:40 +08:00 . add env command
package cmd
import (
"fmt"
"github.com/spf13/cobra"
)
var (
version = "v0.0.1"
versionCmd = &cobra.Command{
Use: "version",
Short: "Print the version number of Gmodel",
Long: `All software has versions. This is Hugo's`,
Run: func(cmd *cobra.Command, args []string) {
fmt.Sprintf("Gmodel Static Site Generator %s -- HEAD", version)
},
}
)
func init() {
rootCmd.AddCommand(versionCmd)
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/whilew/gmodel.git
git@gitee.com:whilew/gmodel.git
whilew
gmodel
gmodel
7607688b7999

搜索帮助