Sha256: 82ff4f417c290991de05cf1c2cf12d864c40f62044b5a3c5dccd711b95da6c28

Contents?: true

Size: 774 Bytes

Versions: 6

Compression:

Stored size: 774 Bytes

Contents

require "inch/cli/command/options/list"
require "inch/cli/command/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
          "Usage: inch list [paths] [options]"
        end

        # Runs the commandline utility, parsing arguments and displaying a
        # list of objects
        #
        # @param [Array<String>] args the list of arguments.
        # @return [void]
        def run(*args)
          prepare_codebase(*args)
          context = API::List.new(codebase, @options)
          Output::List.new(@options, context.objects, context.grade_lists)
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
inch-0.5.0.rc5 lib/inch/cli/command/list.rb
inch-0.5.0.rc4 lib/inch/cli/command/list.rb
inch-0.4.10 lib/inch/cli/command/list.rb
inch-0.4.9 lib/inch/cli/command/list.rb
inch-0.4.8 lib/inch/cli/command/list.rb
inch-0.4.7 lib/inch/cli/command/list.rb