Sha256: 2ae58330becee0c043b9e934c4ce91c0bc0f2be66e148c432582b3b16bf9887d

Contents?: true

Size: 441 Bytes

Versions: 34

Compression:

Stored size: 441 Bytes

Contents

module Inch
  module CLI
    module Command
      module Options
        class Stats < BaseList
          FORMATS = %w(text json yaml)

          attribute :format, FORMATS.first

          def list_options(opts)
            super
            opts.on('-f', '--format [FORMAT]', FORMATS,
                    'Set output FORMAT') do |format|
              @format = format
            end
          end
        end
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
inch-0.9.0.rc1 lib/inch/cli/command/options/stats.rb
inch-0.8.0 lib/inch/cli/command/options/stats.rb
inch-0.8.0.rc2 lib/inch/cli/command/options/stats.rb
inch-0.8.0.rc1 lib/inch/cli/command/options/stats.rb
inch-0.7.1 lib/inch/cli/command/options/stats.rb
inch-0.7.0 lib/inch/cli/command/options/stats.rb
inch-0.6.4 lib/inch/cli/command/options/stats.rb
inch-0.6.3 lib/inch/cli/command/options/stats.rb
inch-0.6.2 lib/inch/cli/command/options/stats.rb
inch-0.6.1 lib/inch/cli/command/options/stats.rb
inch-0.6.0 lib/inch/cli/command/options/stats.rb
inch-0.6.0.rc6 lib/inch/cli/command/options/stats.rb
inch-0.6.0.rc5 lib/inch/cli/command/options/stats.rb
inch-0.6.0.rc4 lib/inch/cli/command/options/stats.rb
inch-0.6.0.rc3 lib/inch/cli/command/options/stats.rb
inch-0.6.0.rc2 lib/inch/cli/command/options/stats.rb
inch-0.6.0.rc1 lib/inch/cli/command/options/stats.rb
inch-0.5.10 lib/inch/cli/command/options/stats.rb
inch-0.5.9 lib/inch/cli/command/options/stats.rb
inch-0.5.8 lib/inch/cli/command/options/stats.rb