之前看到个node写的工具commitzen
,可以用来格式化commit message,周末用Rust仿制了一个,已经发布到crates.io。链接commit-formatter。
https://github.com/Eliot00/commit-formatter
参考了这篇介绍commit规范的文章,主要是拼接了一下用户输入,用到了console
和dialoguer
这两个crate。
https://www.ruanyifeng.com/blog/2016/01/commit_message_change_log.html
欢迎大佬们测试使用。