Class: Inch::CLI::Command::Options::List

Inherits:
BaseList show all
Defined in:
lib/inch/cli/command/options/list.rb

Instance Attribute Summary

Attributes inherited from BaseList

#objects

Attributes inherited from Base

#codebase

Instance Method Summary collapse

Methods inherited from BaseList

#prepare_codebase

Methods inherited from Base

#description, #initialize, #name, register_command_as, run, #run, #usage

Methods included from TraceHelper

#ui

Constructor Details

This class inherits a constructor from Inch::CLI::Command::Base

Instance Method Details

#descriptionsObject



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/inch/cli/command/options/list.rb', line 8

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

#list_options(opts) ⇒ Object



20
21
22
23
24
25
# File 'lib/inch/cli/command/options/list.rb', line 20

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