Sha256: 8543667741107000cb743a56f4154d42c9f7256271d4765890c34951d4487a2a

Contents?: true

Size: 735 Bytes

Versions: 4

Compression:

Stored size: 735 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".cyan,
              "",
              description_grades,
              description_arrows
            ]
          end

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
inch-0.1.3 lib/inch/cli/command/options/list.rb
inch-0.1.2 lib/inch/cli/command/options/list.rb
inch-0.1.1 lib/inch/cli/command/options/list.rb
inch-0.1.0 lib/inch/cli/command/options/list.rb