Sha256: 3cc87dd708be7aac482aea20178bab498a3e27921e48de9c086b197b226a1942
Contents?: true
Size: 706 Bytes
Versions: 6
Compression:
Stored size: 706 Bytes
Contents
module Inch # The CLI module is tasked with the deconstruction of CLI calls # into API calls. # # @see Inch::API module CLI class << self # Returns the columns of the terminal window # (defaults to 80) # @param default [Fixnum] default value for columns # @return [Fixnum] def get_term_columns(default = 80) str = `stty size` rows_cols = str.split(" ").map(&:to_i) rows_cols[1] || default rescue default end end COLUMNS = get_term_columns end end require "inch/cli/arguments" require "inch/cli/sparkline_helper" require "inch/cli/trace_helper" require "inch/cli/yardopts_helper" require "inch/cli/command"
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
inch-0.5.0.rc5 | lib/inch/cli.rb |
inch-0.5.0.rc4 | lib/inch/cli.rb |
inch-0.4.10 | lib/inch/cli.rb |
inch-0.4.9 | lib/inch/cli.rb |
inch-0.4.8 | lib/inch/cli.rb |
inch-0.4.7 | lib/inch/cli.rb |