Limits the display to relevant messages.
parent
5839ba98b4
commit
0797a1a6e5
|
@ -25,15 +25,15 @@ class Context
|
|||
end
|
||||
|
||||
def debug(message : String)
|
||||
puts "#{CGREEN}#{message}#{CRESET}"
|
||||
puts "#{CGREEN}#{message}#{CRESET}" if Context.verbosity > 2
|
||||
end
|
||||
|
||||
def info(message : String)
|
||||
puts "#{CBLUE}#{message}#{CRESET}"
|
||||
puts "#{CBLUE}#{message}#{CRESET}" if Context.verbosity > 1
|
||||
end
|
||||
|
||||
def danger(message : String)
|
||||
puts "#{CORANGE}#{message}#{CRESET}"
|
||||
puts "#{CORANGE}#{message}#{CRESET}" if Context.verbosity > 0
|
||||
end
|
||||
|
||||
|
||||
|
|
Reference in New Issue