I'm working on a project that will use whatever package manager is available to provision a freshly installed OS. Some examples of package managers could be
apt for Ubuntu,
brew cask for OSX, or
pacman for Arch.
I'd like to display colored messages to stdout or stderr depending on what happens. I'm looking for some guidelines about what type of color and content I should use and where I should pipe the output.
Thinking a little bit about it I came up with:
status messages can be in blue or no color and only printed to stdout if the
--verboseflag is given.
-* installing commandline-tools
Success messages in green and printed by default to stdout (or maybe if the verbose flag is given I'm not sure)
-* installed commandline-tools
Failure messages in red and printed by default to stderr
-* failed to install commandline-tools
Thoughts and opinions are welcome, but I would also appreciate some definitive sources/guidelines