Skip to content

atsushi-ishibashi/gowc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gowc

Installing

go get github.com/atsushi-ishibashi/gowc

Usage

gowc
TotalStats
-------------------------
| Files | Lines | Bytes |
-------------------------
| 3     | 203   | 5037  |
-------------------------
Each files
--------------
| main.go    |
--------------
| 173 | 3538 |
--------------
-------------
| README.md |
-------------
| 1 | 6     |
-------------
-------------
| LICENSE   |
-------------
| 29 | 1493 |
-------------
// output specified file
gowc -f README.md
TotalStats
-------------------------
| Files | Lines | Bytes |
-------------------------
| 1     | 1     | 6     |
-------------------------
Each files
-------------
| README.md |
-------------
| 1 | 6     |
-------------
// exclude files
gowc -ex .*.md
TotalStats
-------------------------
| Files | Lines | Bytes |
-------------------------
| 2     | 202   | 5031  |
-------------------------
Each files
--------------
| main.go    |
--------------
| 173 | 3538 |
--------------
-------------
| LICENSE   |
-------------
| 29 | 1493 |
-------------
// include and exclude
gowc -ex .*.md -ex ^LICENSE$ -in .*.go
TotalStats
-------------------------
| Files | Lines | Bytes |
-------------------------
| 1     | 225   | 4623  |
-------------------------
Each files
--------------
| main.go    |
--------------
| 225 | 4623 |
--------------

Help

gowc -h

Usage of gowc:
  -ex string
    	regexp to exclude file name(optional)
  -f string
    	file path(optional)
  -in value
    	regexp to include file name(optional)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages