Sha256: cfb26dd4e52699513002fec98c5de6f0d195215549807fa6b0a6d850b4988082

Contents?: true

Size: 605 Bytes

Versions: 5

Compression:

Stored size: 605 Bytes

Contents

module YARD
  module Server
    module Commands
      # List Features powers the features menu option in `yard server`
      class ListFeaturesCommand < ListCommand
        def type; :features end

        def items
          Registry.load_all
          run_verifier(Registry.all(:feature))
        end
      end

      # List Tags powers the tags menu option in `yard server`
      class ListTagsCommand < ListCommand
        def type; :tags end

        def items
          Registry.load_all
          run_verifier(Registry.all(:tag).sort_by {|t| t.value.to_s })
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
yard-lucid-0.5.0 lib/yard/server/commands/list_command.rb
yard-lucid-0.4.0 lib/yard/server/commands/list_command.rb
yard-lucid-0.3.0 lib/yard/server/commands/list_command.rb
yard-lucid-0.2.0 lib/yard/server/commands/list_command.rb
yard-lucid-0.1.0 lib/yard/server/commands/list_command.rb