Sha256: c850d5f0663ed719ef47b761d78089e100c4c83a71c6d22e087d287b4b248bb3

Contents?: true

Size: 851 Bytes

Versions: 29

Compression:

Stored size: 851 Bytes

Contents

module Inch
  module CLI
    module Command
      # Base class for Command objects concerned with lists of objects
      #
      # Commands subclassing from this class are called with an optional list
      # of paths in the form:
      #
      #   $ inch COMMAND [paths] [options]
      #
      # @abstract
      class BaseList < Base
        attr_accessor :objects

        # Prepares the list of objects and grade_lists, parsing arguments and
        # running the source parser.
        #
        # @param *args [Array<String>] the list of arguments.
        # @return [void]
        def prepare_codebase(*args)
          @options.parse(args)
          @options.verify

          config = Config::Codebase.new(@options.paths, @options.excluded)
          @codebase = ::Inch::Codebase.parse(Dir.pwd, config)
        end
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
inch-0.4.10 lib/inch/cli/command/base_list.rb
inch-0.4.9 lib/inch/cli/command/base_list.rb
inch-0.4.8 lib/inch/cli/command/base_list.rb
inch-0.4.7 lib/inch/cli/command/base_list.rb
inch-0.5.0.rc3 lib/inch/cli/command/base_list.rb
inch-0.5.0.rc2 lib/inch/cli/command/base_list.rb
inch-0.5.0.rc1 lib/inch/cli/command/base_list.rb
inch-0.4.6 lib/inch/cli/command/base_list.rb
inch-0.4.5 lib/inch/cli/command/base_list.rb
inch-0.4.4 lib/inch/cli/command/base_list.rb
inch-0.4.4.rc4 lib/inch/cli/command/base_list.rb
inch-0.4.4.rc3 lib/inch/cli/command/base_list.rb
inch-0.4.4.rc2 lib/inch/cli/command/base_list.rb
inch-0.4.4.rc1 lib/inch/cli/command/base_list.rb
inch-0.4.3 lib/inch/cli/command/base_list.rb
inch-0.4.3.rc2 lib/inch/cli/command/base_list.rb
inch-0.4.3.rc1 lib/inch/cli/command/base_list.rb
inch-0.4.2 lib/inch/cli/command/base_list.rb
inch-0.4.1 lib/inch/cli/command/base_list.rb
inch-0.4.0 lib/inch/cli/command/base_list.rb