bin/itools in itools-0.4.5 vs bin/itools in itools-0.4.6
- old
+ new
@@ -63,6 +63,15 @@
command :count_code_line do |c|
c.action do |global_options, options, args|
Itools::CodeCouner.count_line(args)
end
end
+
+#本地commit规范化
+desc "通过执行该命令,hook 本地commit,然后进行规范化"
+arg 'git项目根目录'
+command :pre_commit do |c|
+ c.action do |global_options,options, args|
+ Itools::GitSets.commit_msg_init(args)
+ end
+end
exit run(ARGV)
\ No newline at end of file