module BranchIOCLI::Format

Public Instance Methods

option(opt) click to toggle source
# File lib/branch_io_cli/format.rb, line 12
def option(opt)
  highlight "--#{opt.to_s.gsub(/_/, '-')}"
end
render(template) click to toggle source
# File lib/branch_io_cli/format.rb, line 7
def render(template)
  path = File.expand_path(File.join("..", "..", "assets", "templates", "#{template}.erb"), __FILE__)
  ERB.new(File.read(path)).result binding
end