Sha256: 96e0d1a4fcabe714ff7784bf3081ecf1788ae88c304797ab226f390e6dc1885f
Contents?: true
Size: 754 Bytes
Versions: 7
Compression:
Stored size: 754 Bytes
Contents
# encoding: utf-8 module GithubCLI class UI attr_writer :shell def initialize(shell) @shell = shell end def confirm(message) @shell.say message, :green end def info(message) @shell.say message, nil end def warn(message) @shell.say message, :yellow end def error(message) @shell.say message, :red end def debug(message) @shell.say message end def debug! @debug = true end def print_table(table, options={}) @shell.print_table table, options end def print_wrapped(message, options={}) @shell.print_wrapped message, options end def terminal_width @shell.terminal_width end end # UI end # GithubCLI
Version data entries
7 entries across 7 versions & 1 rubygems