Module: Github::CLI::ShellHelpers

Included in:
Issues, PullRequests
Defined in:
lib/github/cli/shell_helpers.rb

Instance Method Summary collapse

Instance Method Details

#hrObject



10
11
12
# File 'lib/github/cli/shell_helpers.rb', line 10

def hr
  '-' * terminal_width
end

#width_for_percent(percent) ⇒ Object



6
7
8
# File 'lib/github/cli/shell_helpers.rb', line 6

def width_for_percent(percent)
  (terminal_width * percent).to_i
end