krieselreihe / litr

Litr (Language Independent Task Runner) lets you configure and then run any tasks you want for any language.
MIT License
8 stars 0 forks source link

Idea: command option to show a spinner instead of the underlying script output #6

Open MartinHelmut opened 3 years ago

MartinHelmut commented 3 years ago

Currently there is the idea for a silent option on a command:

[commands.install]
silent = true

This is nice and required but could be better in case user feedback is needed, but not in detail. The proposed idea therefore is to have silent as an option in for an enum of values, e.g.:

[commands.install]
output = "silent"

Name is not final. But this would give option for more, like a "loading" version where a loading spinner is shown to the user, e.g.:

[commands.install]
output = "loading"

Some of the supported options could be: unchanged (default), pretty, silent, loading. Where verbose os the default printing everything and pretty tries to parse the output.

Problem: One issue here is that in a CI environment you want probably a different option.