Sha256: 2c6c30e7612b2eb8188f4e05fab75c3ebf2044cf5fc48965ce3eaa41df50dae0

Contents?: true

Size: 685 Bytes

Versions: 54

Compression:

Stored size: 685 Bytes

Contents

module YARD
  module CLI
    # Lists all constant and method names in the codebase. Uses {Yardoc} --list.
    class List < Command
      def description; 'Lists all constant and methods. Uses `yard doc --list`' 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)
        if args.include?('--help')
          log.puts "Usage: yard list [yardoc_options]"
          log.puts "Takes the same arguments as yardoc. See yardoc --help"
        else
          Yardoc.run('-c', '--list', *args)
        end
      end
    end
  end
end

Version data entries

54 entries across 45 versions & 8 rubygems

Version Path
abaci-0.3.0 vendor/bundle/gems/yard-0.9.2/lib/yard/cli/list.rb
abaci-0.3.0 vendor/bundle/gems/yard-0.9.1/lib/yard/cli/list.rb
yard-0.9.5 lib/yard/cli/list.rb
yard-0.9.4 lib/yard/cli/list.rb
yard-0.9.3 lib/yard/cli/list.rb
yard-0.9.2 lib/yard/cli/list.rb
yard-0.9.1 lib/yard/cli/list.rb
yard-0.9.0 lib/yard/cli/list.rb
yard-0.8.7.6 lib/yard/cli/list.rb
yard-0.8.7.5 lib/yard/cli/list.rb
climine-0.0.7 vendor/bundle/ruby/2.1.0/gems/yard-0.8.7.3/lib/yard/cli/list.rb
climine-0.0.7 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/cli/list.rb
climine-0.0.6 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/cli/list.rb
climine-0.0.5 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/cli/list.rb
yard-0.8.7.4 lib/yard/cli/list.rb
climine-0.0.4 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/cli/list.rb
climine-0.0.3 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/cli/list.rb
mango-0.8.0 vendor/bundler/ruby/2.1.0/gems/yard-0.8.7.3/lib/yard/cli/list.rb
mango-0.7.1 vendor/bundler/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/cli/list.rb
mango-0.7.0 vendor/bundler/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/cli/list.rb