Class: Inch::CLI::Command::List
- Defined in:
- lib/inch/cli/command/list.rb
Instance Attribute Summary
Attributes inherited from BaseList
Attributes inherited from Base
Instance Method Summary collapse
- #description ⇒ Object
-
#run(*args) ⇒ void
Runs the commandline utility, parsing arguments and displaying a list of objects.
- #usage ⇒ Object
Methods inherited from BaseList
Methods inherited from Base
#initialize, #name, register_command_as, run
Methods included from TraceHelper
Constructor Details
This class inherits a constructor from Inch::CLI::Command::Base
Instance Method Details
#description ⇒ Object
10 11 12 |
# File 'lib/inch/cli/command/list.rb', line 10 def description 'Lists all objects with their results' end |
#run(*args) ⇒ void
This method returns an undefined value.
Runs the commandline utility, parsing arguments and displaying a list of objects
23 24 25 26 27 |
# File 'lib/inch/cli/command/list.rb', line 23 def run(*args) prepare_codebase(*args) context = API::List.new(codebase, @options) Output::List.new(@options, context.objects, context.grade_lists) end |
#usage ⇒ Object
14 15 16 |
# File 'lib/inch/cli/command/list.rb', line 14 def usage 'Usage: inch list [paths] [options]' end |