lib/inch/cli/command/list.rb in inch-0.2.2 vs lib/inch/cli/command/list.rb in inch-0.2.3
- old
+ new
@@ -1,9 +1,14 @@
+require_relative 'options/list'
+require_relative 'output/list'
+
module Inch
module CLI
module Command
class List < BaseList
+ register_command_as :list
+
def description
'Lists all objects with their results'
end
def usage
@@ -15,10 +20,10 @@
#
# @param [Array<String>] args the list of arguments.
# @return [void]
def run(*args)
prepare_list(*args)
- Output::List.new(@options, objects, @ranges)
+ Output::List.new(@options, objects, @grade_lists)
end
end
end
end
end