command
module
Version:
v1.0.4
Opens a new window with list of versions in this module.
Published: Oct 29, 2021
License: MIT
Opens a new window with license information.
Imports: 18
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
The Line
Simple extendable line counter
Installation
go install github.com/mymmrac/the-line@latest
# Optionally rename binary
mv $GOPATH/bin/the-line $GOPATH/bin/tl
NOTE: Make sure to add $GOPATH/bin
to $PATH
to use
Usage
# Search for all files/folders in current dir and count lines in Go files
tl -p go -r .
# Help info
tl --help
Features
List of supported features (or TBD features)
Filters:
- Match
- Prefix/suffix
- Contains
- Length
- Regexp
- Blank
- Any
- Union
- Intersection
- Not
Modifiers:
- Trim spaces/prefix/suffix
- To lower
Configs:
- Embedded (default config included in binary)
- YAML (user defined config)
CLI:
- Pretty interface using Charm
- Minimal output (regular stdout)
- Output only total
- Output grouped by folders
- Show used/matched by profiles/skipped files
Refactoring
- Main
- Display
- Make packages
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.