Skip to content
/ gat Public

Gat is CLI program, it allows you to count words or lines, search for occurrences or display file content

Notifications You must be signed in to change notification settings

ipfaze/gat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GAT

Build status coverage

Gat is a command line program that provides multiple functionalities such as :

  • Printing file's content
  • Searching for keyword using regex or exact matching
  • Count lines
  • Count words

Usage

First you can check the output of the help command like :

Linux or MacOS

gat --help

Windows

gat.exe --help

Build

The go program is required to build this project, if it's not installed on your machine please download it here : https://go.dev/dl/

To build the project, simply download this repository and execute :

go build

Tests

Unit tests

Without coverage report

go test

With coverage report

go test -cover

With coverage report by function

go test -coverprofile=coverage.out ./...
go tool cover -func=coverage.out

With coverage report as html

go test -coverprofile=coverage.out ./...
go tool cover -html=coverage.out

About

Gat is CLI program, it allows you to count words or lines, search for occurrences or display file content

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages