CodeNeverStops / GCL

并行计算文件行数

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GCL

Go Count Lines

Usage

➜ ./gcl -help
usage: gcl [flags] [dir]
flags:
  -excludedir string
        specify the exclude dirs
  -filetype string
        specify the file type to count line
  -help
        show usage help and quit
  -sortasc
        sort files in ascending order
  -top int
        list top N files
  -version
        show version and quit

Example

➜ ./gcl -filetype ".js|.php" -top 10 /your/dir1 /your/dir2
or
➜ ./gcl -filetype ".go" -excludedir "vendor" -top 10 ./

About

并行计算文件行数


Languages

Language:Go 100.0%