Sha256: eba3621c44ecadf68bcf5223fe808575efa0646ccf4618e41bac8ef63961208d

Contents?: true

Size: 753 Bytes

Versions: 3

Compression:

Stored size: 753 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 |depth|
              @numbers = true
            end
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
inch-0.5.0.rc3 lib/inch/cli/command/options/list.rb
inch-0.5.0.rc2 lib/inch/cli/command/options/list.rb
inch-0.5.0.rc1 lib/inch/cli/command/options/list.rb