Skip to content

Thom-x/Decoration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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]