This pull request improves CLI output in many aspects, most notably:
The CLI::UI module now features #debug, #info and #warn methods are introduced. They should be used instead of Kernel#puts. For now there is no difference between #debug and #warn, but it will change in future.
These methods print messages in a consistent format, providing better readability both in development and in CI.
UI tags (CLI::UI#set_ui_tag) are introduced so that every debug and warning message can be easily and reliably prepended with concept ID and language.
Relaton warnings are captured and printed in a way that is consistent with other logged messages.
The improved UI was also meant to be thread-safe (as #139 prerequisite), but is not yet. Calling it from different threads may result with mangled output.
This pull request improves CLI output in many aspects, most notably:
CLI::UI
module now features#debug
,#info
and#warn
methods are introduced. They should be used instead ofKernel#puts
. For now there is no difference between#debug
and#warn
, but it will change in future.CLI::UI#set_ui_tag
) are introduced so that every debug and warning message can be easily and reliably prepended with concept ID and language.The improved UI was also meant to be thread-safe (as #139 prerequisite), but is not yet. Calling it from different threads may result with mangled output.