Sha256: c70ca271f0f8855379a8a961528c973d212573a3884114c8b837a93c0ee61e45

Contents?: true

Size: 840 Bytes

Versions: 2

Compression:

Stored size: 840 Bytes

Contents

require_relative 'options/suggest'
require_relative 'output/suggest'

module Inch
  module CLI
    module Command
      class Suggest < List
        register_command_as :suggest, true

        def description
          'Suggests some objects to be doucmented (better)'
        end

        def usage
          'Usage: inch suggest [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::Suggest.new(codebase, @options)
          Output::Suggest.new(@options, context.all_objects,
            context.objects, context.grade_lists, context.files)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
inch-0.3.0.rc2 lib/inch/cli/command/suggest.rb
inch-0.3.0.rc1 lib/inch/cli/command/suggest.rb