Obsolete
/
ipc.cr-old
Archived
3
0
Fork 0
This repository has been archived on 2024-06-18. You can view files and clone it, but cannot push or open issues/pull-requests.
ipc.cr-old/tests/prints.cr

14 lines
295 B
Crystal
Raw Normal View History

2020-07-20 16:26:58 +02:00
require "./colors"
def important(message : String)
2020-07-20 18:54:57 +02:00
puts "#{CRED}#{message}#{CRESET}" if CLI.verbosity > 0
2020-07-20 16:26:58 +02:00
end
def info(message : String)
2020-07-20 18:54:57 +02:00
puts "#{CGREEN}#{message}#{CRESET}" if CLI.verbosity > 1
2020-07-20 16:26:58 +02:00
end
def debug(message : String)
2020-07-20 18:54:57 +02:00
puts "#{CBLUE}#{message}#{CRESET}" if CLI.verbosity > 2
2020-07-20 16:26:58 +02:00
end