k1LoW / runn

runn is a package/tool for running operations following a scenario.
https://runn.run
MIT License
425 stars 31 forks source link

Add `--force-color` option for forcing colorized output #951

Closed na3shkw closed 3 months ago

na3shkw commented 3 months ago

Added an option to enable colorized output in non-tty output streams like GitHub Actions. When specifying this option, bypass the check for non-tty output streams by the fatih/color package.

Output without option:

$ runn run testdata/book/runn_0_success.yml | less
.

1 scenario, 0 skipped, 0 failures

Output with --force-color option:

$ runn run testdata/book/runn_0_success.yml --force-color | less
.

1 scenario, 0 skipped, 0 failures

k1LoW commented 3 months ago

@na3shkw Thank you!! NICE!!