class YARD::CLI::MarkupTypes

@since 0.8.6
Lists all markup types

def description; 'Lists all available markup types and libraries' end

def description; 'Lists all available markup types and libraries' end

def run(*args) # rubocop:disable Lint/UnusedMethodArgument

Returns:
  • (void) -

Parameters:
  • args (Array) -- the list of arguments.
def run(*args) # rubocop:disable Lint/UnusedMethodArgument
  log.puts "Available markup types for `doc' command:"
  log.puts
  types = Templates::Helpers::MarkupHelper::MARKUP_PROVIDERS
  exts = Templates::Helpers::MarkupHelper::MARKUP_EXTENSIONS
  types.sort_by {|name, _| name.to_s }.each do |name, providers|
    log.puts "[#{name}]"
    libs = providers.map {|p| p[:lib] }.compact
    log.puts "  Providers: #{libs.join(" ")}" unless libs.empty?
    if exts[name]
      log.puts "  Extensions: #{exts[name].map {|e| ".#{e}" }.join(" ")}"
    end
    log.puts
  end
end