the-line

command module
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2021 License: MIT Imports: 18 Imported by: 0

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

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL