Module: Digicert::CLI::Util

Defined in:
lib/digicert/cli/util.rb

Class Method Summary collapse

Class Method Details

.make_it_pretty(headings:, rows:) ⇒ Object



6
7
8
9
10
11
# File 'lib/digicert/cli/util.rb', line 6

def self.make_it_pretty(headings:, rows:)
  Terminal::Table.new do |table|
    table.headings = headings
    table.rows = rows
  end
end

.say(message, color = nil) ⇒ Object



13
14
15
# File 'lib/digicert/cli/util.rb', line 13

def self.say(message, color = nil)
  Thor::Shell::Basic.new.say(message, color)
end