Sha256: e511eb1435ed37bbc233f7ec3933609ef8e25f89e5895c03b585e1df5b30f1ca

Contents?: true

Size: 874 Bytes

Versions: 6

Compression:

Stored size: 874 Bytes

Contents

require "inch/cli/command/options/suggest"
require "inch/cli/command/output/suggest"

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

        def description
          "Suggests some objects to be documented (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

6 entries across 6 versions & 1 rubygems

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