Module: Kubetailrb::Painter
- Included in:
- Formatter::JsonFormatter, Reader::K8sPodsReader
- Defined in:
- lib/kubetailrb/painter.rb
Overview
Add behaviors to colorize console output.
Instance Method Summary collapse
- #blue(text) ⇒ Object
- #cyan(text) ⇒ Object
- #highlight_blue(text) ⇒ Object
- #highlight_grey(text) ⇒ Object
- #highlight_red(text) ⇒ Object
- #highlight_yellow(text) ⇒ Object
- #red(text) ⇒ Object
Instance Method Details
#blue(text) ⇒ Object
6 7 8 |
# File 'lib/kubetailrb/painter.rb', line 6 def blue(text) colorize(text, '34') end |
#cyan(text) ⇒ Object
14 15 16 |
# File 'lib/kubetailrb/painter.rb', line 14 def cyan(text) colorize(text, '36') end |
#highlight_blue(text) ⇒ Object
22 23 24 |
# File 'lib/kubetailrb/painter.rb', line 22 def highlight_blue(text) colorize(text, '1;30;44') end |
#highlight_grey(text) ⇒ Object
18 19 20 |
# File 'lib/kubetailrb/painter.rb', line 18 def highlight_grey(text) colorize(text, '1;30;47') end |
#highlight_red(text) ⇒ Object
30 31 32 |
# File 'lib/kubetailrb/painter.rb', line 30 def highlight_red(text) colorize(text, '1;30;41') end |
#highlight_yellow(text) ⇒ Object
26 27 28 |
# File 'lib/kubetailrb/painter.rb', line 26 def highlight_yellow(text) colorize(text, '1;30;43') end |
#red(text) ⇒ Object
10 11 12 |
# File 'lib/kubetailrb/painter.rb', line 10 def red(text) colorize(text, '31') end |