Changes:
New configuration option
This release introduces the OnlyColorPrefix option, which allows the user to specify wheter or not to color the whole line of stdout+stderr of the process in its color:
// config.go
type Config struct {
OnlyColorPrefix bool `json:"only_color_prefix"`
// ...
}
// ...
var DEFAULT_CONFIG = Config{
OnlyColorPrefix: true,
// ...
}
// ...
If it is set to true, only the prefix (xx |) is highlighted in the processes colour:
If it is set to false, the whole line is coloured:
By default, this option is enabled to keep the output simple and clean.
Default config
The default config changed from:
{
"color_output": true,
"commands": [
{
"cwd": "",
"cmd": "echo 'Hello World from command 1!'"
},
{
"cwd": "",
"cmd": "echo 'Hello World from command 2!'"
}
],
"log_file": "gleich.log",
"surpress_output": false
}
to:
{
"only_color_prefix": true,
"color_output": true,
"commands": [
{
"cwd": "",
"cmd": "echo 'Hello World from command 1!'"
},
{
"cwd": "",
"cmd": "echo 'Hello World from command 2!'"
}
],
"log_file": "gleich.log",
"surpress_output": false
}