Skip to content

v2.0.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 04 Apr 06:18

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:

image

If it is set to false, the whole line is coloured:

image

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
}

Changelog

  • 900e327 chore: removed outdated todo comment
  • 1cb51f9 doc: added install from release instructions
  • d9f5470 doc: updated demo video
  • fb94721 feat: new opt config.OnlyColorPrefix
  • 6d525fc refactor(util): split indentation in preparation for changes
  • f9e1204 refactor: changed log to lowercase