Sha256: a1c5f3bbe82210f5a4d3da328be807863461e966c36733ef1e1571044fc754c0

Contents?: true

Size: 840 Bytes

Versions: 29

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 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

29 entries across 29 versions & 1 rubygems

Version Path
inch-0.4.4 lib/inch/cli/command/suggest.rb
inch-0.4.4.rc4 lib/inch/cli/command/suggest.rb
inch-0.4.4.rc3 lib/inch/cli/command/suggest.rb
inch-0.4.4.rc2 lib/inch/cli/command/suggest.rb
inch-0.4.4.rc1 lib/inch/cli/command/suggest.rb
inch-0.4.3 lib/inch/cli/command/suggest.rb
inch-0.4.3.rc2 lib/inch/cli/command/suggest.rb
inch-0.4.3.rc1 lib/inch/cli/command/suggest.rb
inch-0.4.2 lib/inch/cli/command/suggest.rb
inch-0.4.1 lib/inch/cli/command/suggest.rb
inch-0.4.0 lib/inch/cli/command/suggest.rb
inch-0.4.0.rc3 lib/inch/cli/command/suggest.rb
inch-0.4.0.rc2 lib/inch/cli/command/suggest.rb
inch-0.4.0.rc1 lib/inch/cli/command/suggest.rb
inch-0.3.4.rc1 lib/inch/cli/command/suggest.rb
inch-0.3.3 lib/inch/cli/command/suggest.rb
inch-0.3.3.rc1 lib/inch/cli/command/suggest.rb
inch-0.3.2 lib/inch/cli/command/suggest.rb
inch-0.3.2.rc2 lib/inch/cli/command/suggest.rb
inch-0.3.2.rc1 lib/inch/cli/command/suggest.rb