v1.1.0
Changes
demo.mp4
Logging to file
gleichzeitig now supports logging its output into a file as well as into stdout using io.MultiWriter
. By default, the config key value pair log_file
is set to gleich.log
, removing the key or assigning an empty string as its value disables logging to a file.
Old default configuration file:
{
"color_output": true,
"commands": [
{
"cwd": "",
"cmd": "echo 'Hello World from command 1!'"
},
{
"cwd": "",
"cmd": "echo 'Hello World from command 2!'"
}
],
"log_file": "",
"surpress_output": false
}
New default configuration file:
{
"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
}
More verbose logging output
gleichzeitig now shows the user where it sources its configuration from, if it found a value for certain configuration options, and which file it logs to:
I also made some changes to the order of the done, took x
prints to make sure it prints after the command is fully finished: