Sha256: 9b5ab780d24ae49e952b8465d5a4cae27be1d708130280b2af41c735141fd47a
Contents?: true
Size: 585 Bytes
Versions: 255
Compression:
Stored size: 585 Bytes
Contents
module Jets::Commands::Markdown class Index def path "docs/reference.md" end def command_list commands = Jets::Commands::Base.namespaced_commands.sort.reject {|c| c.include?('help') } commands.map do |full_command| # Example: [jets deploy]({% link _reference/jets-deploy.md %}) link = full_command.gsub(':','-') "* [jets #{full_command}]({% link _reference/jets-#{link}.md %})" end.join("\n") end def doc <<-EOL --- title: CLI Reference --- {% include reference.md %} #{command_list} EOL end end end
Version data entries
255 entries across 255 versions & 4 rubygems