Golang Go语言中分享两个git commit小工具--commitizen和validate-commit-msg
Golang Go语言中分享两个git commit小工具–commitizen和validate-commit-msg
起因是不想装 nodejs 一堆包,也不喜欢 js。
https://github.com/lintingzhen/commitizen-go
https://github.com/lintingzhen/validate-commit-msg
求试用,求喷。
更多关于Golang Go语言中分享两个git commit小工具--commitizen和validate-commit-msg的实战教程也可以访问 https://www.itying.com/category-94-b0.html
更多关于Golang Go语言中分享两个git commit小工具--commitizen和validate-commit-msg的实战系列教程也可以访问 https://www.itying.com/category-94-b0.html
跟我当初的想法一样,只不过我当时跑偏了不少;先说一下已知问题:
目前较成熟的 golang 终端 prompt 库对中文都有问题,survey 也是,在输入中文后删除、移动光标会有问题;其他的库可能更严重;而且目前这话总库在光标移动上都不友好,比如 ctrl + a/e 快速移动
我当时脑子一热自己造了一个 promptx 库,基本上解决了这些问题,但是比如更多的列表模式,搜索等都没做;所以最近我尝试去修复 survey 这个问题( https://github.com/AlecAivazis/survey/pull/180),但是目前 PR 没回复了
握手。
我注意到光标问题,曾经考虑过用 readline,不过用 c 比 go 麻烦不少,就作罢了;我还没注意到中文问题,survey 中的 select 的 option 设计不好,作者开了个新分支也不怎么更新。
我也喜欢用 go 写命令行工具:github.com/zeromake/docker-debug
不考虑搞个 brew 包吗?
谢谢建议,我研究一下。
follow 你了
244 天,终于搞了一个 brew 包。