Skip to content

Releases: xNaCly/gleichzeitig

v2.0.0

04 Apr 06:18
Compare
Choose a tag to compare

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

v1.1.0

30 Mar 09:59
Compare
Choose a tag to compare

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:

image

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:

image

Changelog

  • af5d934 doc: add showcase video
  • 9f1f505 feat: default value for 'log_file'
  • 5bc8a59 feat: implement logging to file

v1.0.0

28 Mar 12:19
Compare
Choose a tag to compare

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

  • 098d129 chore: update .gitignore and default config
  • 59cb1c0 refactor: changed log.Fatalln to logErr, updated default cmds
  • c6a7774 refactor: switched from + separated cmds to interpreting every argument as a command

v0.2.0

28 Mar 11:03
Compare
Choose a tag to compare

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:

image

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

28 Mar 07:16
06507ed
Compare
Choose a tag to compare

Changelog