Sha256: 402901a676a4f30416fdf4f9daebe8d279cbbf240fa5684ad9e6135b1a4018c5
Contents?: true
Size: 566 Bytes
Versions: 5
Compression:
Stored size: 566 Bytes
Contents
module Inch module CLI class << self # Returns the columns of the terminal window # (defaults to 80) # @return [Fixnum] def get_term_columns str = `stty size` rows_cols = str.split(' ').map(&:to_i) rows_cols[1] rescue 80 end end COLUMNS = get_term_columns end end require_relative 'cli/arguments' require_relative 'cli/sparkline_helper' require_relative 'cli/trace_helper' require_relative 'cli/yardopts_helper' require_relative 'cli/command' require_relative 'cli/command_parser'
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
inch-0.1.4 | lib/inch/cli.rb |
inch-0.1.3 | lib/inch/cli.rb |
inch-0.1.2 | lib/inch/cli.rb |
inch-0.1.1 | lib/inch/cli.rb |
inch-0.1.0 | lib/inch/cli.rb |