require_relative 'options/stats'
require_relative 'output/stats'

module Inch
  module CLI
    module Command
      class Stats < List
        register_command_as :stats

        def description
          'Lists all objects with their results'
        end

        def usage
          'Usage: inch stats [paths] [options]'
        end

        def run(*args)
          prepare_list(*args)
          Output::Stats.new(@options, objects, @grade_lists)
        end
      end
    end
  end
end