bin/itools in itools-0.4.1 vs bin/itools in itools-0.4.2
- old
+ new
@@ -54,6 +54,15 @@
command :search_file do |c|
c.action do |global_options, options, args|
Itools::FileSearcher.searchFile(args)
end
end
+
+# 统计代码行数
+desc "count lines of code"
+arg 'file name or folder'
+command :count_code_line do |c|
+ c.action do |global_options, options, args|
+ Itools::CodeCouner.counter(args)
+ end
+end
exit run(ARGV)
\ No newline at end of file