Sha256: 2beb465913539c15ea24c6d6f40e86fe7778909019e7973966174736eeaab42e

Contents?: true

Size: 774 Bytes

Versions: 39

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

39 entries across 39 versions & 1 rubygems

Version Path
inch-0.9.0.rc1 lib/inch/cli/command/list.rb
inch-0.8.0 lib/inch/cli/command/list.rb
inch-0.8.0.rc2 lib/inch/cli/command/list.rb
inch-0.8.0.rc1 lib/inch/cli/command/list.rb
inch-0.7.1 lib/inch/cli/command/list.rb
inch-0.7.0 lib/inch/cli/command/list.rb
inch-0.6.4 lib/inch/cli/command/list.rb
inch-0.6.3 lib/inch/cli/command/list.rb
inch-0.6.2 lib/inch/cli/command/list.rb
inch-0.6.1 lib/inch/cli/command/list.rb
inch-0.6.0 lib/inch/cli/command/list.rb
inch-0.6.0.rc6 lib/inch/cli/command/list.rb
inch-0.6.0.rc5 lib/inch/cli/command/list.rb
inch-0.6.0.rc4 lib/inch/cli/command/list.rb
inch-0.6.0.rc3 lib/inch/cli/command/list.rb
inch-0.6.0.rc2 lib/inch/cli/command/list.rb
inch-0.6.0.rc1 lib/inch/cli/command/list.rb
inch-0.5.10 lib/inch/cli/command/list.rb
inch-0.5.9 lib/inch/cli/command/list.rb
inch-0.5.8 lib/inch/cli/command/list.rb