Skip to content

pascencio/goutput

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Goutput

Build Status

Simple CLI tool for formated STDOUT/STDERR handling.

Installation

Execute the following command to intall the latest version.

curl -L -o gout.zip https://github.com/pascencio/goutput/releases/download/0.3.2/gout-0.3.2.zip && \
unzip gout.zip && \
sudo mv gout /usr/bin && \
sudo chmod +x /usr/bin/gout && \
gout --version

Then you will see a output message like this:

Goutput version 0.3.2

Getting started

From sources

You cant build from sources cloning this repository and runing the following command:

go build -o gout

Then in the same directory run your builded binary:

./gout -d -m "Some message: '{}' and '{}'" -p "1" -p "2"

Finally you will get:

[2020-10-10 22:58:40.164] - [DEBUG]: Some message: '1' and '2'

From binaries

Download release versión, then unzip it. Finally move the binary to /usr/bin directory.

To test if all works, run this:

gout -d -m "Some message: '{}' and '{}'" -p "1" -p "2"

Developing

To develop on this project you will need golang version go1.15.2 or superior.

To test your code:

go test github.com/pascencio/goutput/...

TODO

Release 0.0.1

  • First estable version

Release 0.0.2

  • Add continous integration
  • Add release generation
  • Add date support
  • Add output level management based on environment variable

Release 0.4.0

  • Add standard input integration
  • Testing for other linux distributions
  • Add argument descriptión
  • Create a logo 😜