Skip to content

amol909/lineup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lineup

lineup is a small Go CLI that counts lines of code in any folder or git repository.

It reports:

  • code lines
  • comment lines
  • blank lines
  • total lines

Install

From this repository:

go install ./cmd/lineup

If your Go bin directory is not in PATH, add it:

export PATH="$PATH:$(go env GOPATH)/bin"

Usage

Scan current directory:

lineup

Scan a specific folder:

lineup /path/to/project

Show JSON output:

lineup --format json

Show only total code LOC (script-friendly):

lineup --minimal

Enable diagnostics:

lineup --verbose

Runtime is shown by default on stderr for all commands.

Include only selected patterns:

lineup --include "*.go,*.py"

Exclude paths/patterns:

lineup --exclude "vendor,node_modules,.git"

Ignore .gitignore rules:

lineup --no-gitignore

About

A cli written in go to count the lines of code.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages