Skip to content

Norphy/trog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

trog

Log Analyzer CLI App

trog-log-demo trog-find-demo trog-tail-demo

Install

npm i trog-cli

Usage

tail

trog tail [options] file

Argument Type Description
file string path to the file which tail will be performed
Param Type Description
-n, --number-lines string Number of lines to print to log. Default: 10
-e, --encoding string encooding of text to print. Default: utf8
-f, --follow null Follow file for any additions. Default: false
-h or --help null Display help

Description: Similar to normal tail. Tail a file.

find

trog find [options] file searchText

Argument Type Description
file string path to the file which find will be performed
searchText string desired text to be found in file
Param Type Description
-A, --After-value string number of lines to print before occurance of desired find. Default: 5
-B, --Before-value string number of lines to print after occurance of desired find. Default: 5
-h or --help null Display help

Description: Opens interactive window with all the finds in a file. User can jump between next and previous using 'n' and 'p' keys and scroll up and down.

log

trog log [options] file

Argument Type Description
file string path to the file which log will be performed
Param Type Description
-e, --encoding string encooding of text to print. Default: utf8
-h or --help null Display help

Description: Interactive view of watching any changes to file with Filter and Highlight. Filter and Highlight accept REGEX.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors