Module: BranchIOCLI::Format::HighlineFormat

Includes:
BranchIOCLI::Format
Included in:
CLI
Defined in:
lib/branch_io_cli/format/highline_format.rb

Instance Method Summary collapse

Methods included from BranchIOCLI::Format

#option, #render

Instance Method Details

#header(text, level = 1) ⇒ Object



8
9
10
# File 'lib/branch_io_cli/format/highline_format.rb', line 8

def header(text, level = 1)
  highlight text
end

#highlight(text) ⇒ Object



12
13
14
# File 'lib/branch_io_cli/format/highline_format.rb', line 12

def highlight(text)
  "<%= color('#{text}', BOLD) %>"
end

#italics(text) ⇒ Object



16
17
18
# File 'lib/branch_io_cli/format/highline_format.rb', line 16

def italics(text)
  highlight text
end