https://github.com/thom-x/decoration
Simple go bin to add color prefix and suffix
https://github.com/thom-x/decoration
color go golang pipeline prefix suffix
Last synced: 2 months ago
JSON representation
Simple go bin to add color prefix and suffix
- Host: GitHub
- URL: https://github.com/thom-x/decoration
- Owner: Thom-x
- License: mit
- Created: 2020-03-12T13:18:59.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-13T09:48:04.000Z (about 5 years ago)
- Last Synced: 2025-01-25T10:11:13.626Z (4 months ago)
- Topics: color, go, golang, pipeline, prefix, suffix
- Language: Go
- Size: 22.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Decoration
Execute a program and add prefix suffix and color to its log output

---
### Build
```bash
go build -o ./bin/decoration
```### Example
```bash
> decoration -e myprogram -a "args args args" -p "[prefix] " -s "[suffix]" -c yellow
[prefix] output [suffix]
```### Command line options
```bash
> ./bin/decoration --help
Execute a program and add prefix suffix and color to its log outputUsage:
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]
```