Closed tiborsimko closed 3 years ago
Don't hesitate to play also with echoing the main headlines in bold, for example:
Example of function signature: display_message(message, style='error')
which would produce message with leading ==> ERROR: message
in red. By default the style could be green (meaning all OK), and style='warning'
would be in yellow, etc.
@tiborsimko What do you think about this one?
Instead of having
print()
andclick.echo()
hard-coded throughout the code base, let's introduce a newprinter.py
module that can take care of displaying info/error messages in unified manner.Example:
display_message()
function inreana-dev
.We could then print success in green, progress in yellow, errors in red, etc.
The code base should then be amended to use the new
display_message()
function instead of printing or echoing.