Thom-x / Decoration

Simple go bin to add color prefix and suffix

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Decoration

Execute a program and add prefix suffix and color to its log output

Go Release


Build

go build -o ./bin/decoration

Example

> decoration -e myprogram -a "args args args" -p "[prefix] " -s "[suffix]" -c yellow
  [prefix] output [suffix]

Command line options

> ./bin/decoration --help
Execute a program and add prefix suffix and color to its log output

Usage:
  decoration [flags]

Flags:
  -a, --args string      arguments of the program
  -c, --color string     color : black, red, green, yellow, blue, magenta, cyan, white
  -h, --help             help for decoration
  -p, --prefix string    prefix
  -e, --program string   program to execute
  -s, --suffix string    suffix
  
> decoration -e myprogram -a "args args args" -p "[prefix] " -s "[suffix]" -c yellow
  [prefix] output [suffix]

About

Simple go bin to add color prefix and suffix

License:MIT License


Languages

Language:Go 100.0%