gitcm
git commit 增强工具 gitcm (Git Commit IMproved)
开发文档
安装 cobra-cli
go install github.com/spf13/cobra-cli@latest
新建 go mod
go mod init code.liaosirui.com/srliao/gitcm
初始化 cli 工具
cobra-cli init --author "cyril@liaosirui.com"
增加一个子命令 config
cobra-cli add config --author "cyril@liaosirui.com" -p rootCmd
发布 release 信息
go install github.com/goreleaser/goreleaser@latest
在项目根目录生成 .goreleaser.yml 配置:
goreleaser init
发布 release
git tag -a v0.0.1 -m "First release"
git push origin v0.0.1
export GITEA_TOKEN="eb9dd266a3770b356b750197f75e1fc6bf48a178"
goreleaser release --rm-dist
使用文档
安装
export GONOPROXY=code.liaosirui.com
go install code.liaosirui.com/srliao/gitcm@latest
子命令
config
包含子命令:
list
示例:
gitcm config list --local