Releases: xNaCly/gleichzeitig
v2.0.0
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
}
Changelog
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:
Changelog
v1.0.0
Breaking changes
This release breaks compatibility with gleichzeitig run
in v0.2.0:
Previous behaviour:
gleichzeitig run "echo 'hello world'+echo 'hello world2"
New behaviour:
gleichzeitig run "echo 'hello world'" "echo 'hello world2"
Changelog
v0.2.0
Changes
New command
gleichzeitig now features a new command run
to iterate faster or simply run a few commands in parallel. This command is a subcommand to gleichzeitig and accepts an argument which contains the commands to run, which are separated with +
:
demo.mp4
Colorful info, warning and error
All three of the above now have fancier colors:
Confirmation prompt for overriding config
Previously running gleichzeitig init
in a directory which already contained the .gleichzeitig/config.json
file resulted in gleichzeitig overriding the configuration. Now the following prompt appears:
demo.mp4
Changelog
- 27309ed Create LICENSE
- 5326599 Merge pull request #1 from xNaCly/chore/license
- c7d2589 feat: add better error reporting to init cmd
- fa7b60e feat: add config override check to init cmd
- 50881f7 feat: add run cmd
- 824eb8b feat: more colors & colors for log functions
- d07103e refactor: allow printing of empty lines
v0.1.0
Changelog
- 06507ed Create .github/workflows/main.yml
- f0e7312 chore: setup goreleaser
- 577d690 doc: function comments
- f6682e7 doc: init
- b1ed7a3 doc: remove from release
- 9ab3335 doc: usage, setup
- c425601 feat: colors, executing shell cmds
- 2aa2bc9 feat: configuration support
- 88d1515 fix: error if too many commands
- dbc6ced fix: output print
- 28a997a fix: tried to fix output and waiting
- e27bcc3 fix: wait for cmds to finish