Sha256: 771471bb37f39fcdbd6eaa6c2817dd86670b428a20b0744344a83c9121ea37cf

Contents?: true

Size: 766 Bytes

Versions: 6

Compression:

Stored size: 766 Bytes

Contents

module Inch
  module CLI
    module Command
      module Options
        class List < BaseList
          attribute :numbers, false

          def descriptions
            [
              "",
              "Lists objects that can be improved regarding their " \
                "documentation ordered by their grade.",
              "",
              "Example: " + "$ inch list lib/**/*.rb --all".color(:cyan),
              "",
              description_hint_grades,
              description_hint_arrows
            ]
          end

          def list_options(opts)
            super
            opts.on("--numbers", "Show numbers instead of grades and arrows") do
              @numbers = true
            end
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
inch-0.5.0.rc5 lib/inch/cli/command/options/list.rb
inch-0.5.0.rc4 lib/inch/cli/command/options/list.rb
inch-0.4.10 lib/inch/cli/command/options/list.rb
inch-0.4.9 lib/inch/cli/command/options/list.rb
inch-0.4.8 lib/inch/cli/command/options/list.rb
inch-0.4.7 lib/inch/cli/command/options/list.rb