validations_libs.cli.colors module¶
- validations_libs.cli.colors.color_output(output, status=None)[source]¶
Apply color to output based on colors dict entries. Unknown status or no status at all results in aplication of YELLOW color.
Note
Coloring itself is performed using format method of the string class. This function is merely a wrapper around it, and around ANSI escape sequences as defined by ECMA-48.