Initialize re-instantiates the Aurora instance This initialization step is necessary because the parsing of the --no-color flag is done fairly late in the application cycle.
(shouldDisableColors bool)
| 40 | // This initialization step is necessary because the parsing of the |
| 41 | // --no-color flag is done fairly late in the application cycle. |
| 42 | func Initialize(shouldDisableColors bool) { |
| 43 | DisableColors = shouldDisableColors |
| 44 | color = Color() |
| 45 | } |
| 46 | |
| 47 | // ColorizeJSON returns a colorized version of the input JSON, if the writer |
| 48 | // supports colors. |