Sha256: 8391396929f783fa2811c29c4addfbbd3ca589ff49c9bc39a91348173b8b4989

Contents?: true

Size: 459 Bytes

Versions: 2

Compression:

Stored size: 459 Bytes

Contents

  <%= color "NAME", :bold %>:

    <%= program :name %>

  <%= color "DESCRIPTION", :bold %>:

    <%= program :description %>

  <%= color "SUB-COMMANDS", :bold %>:
<% @commands.each_pair do |name, command| %>
    <%= "%-14s %s" % [command.name, command.summary || command.description] -%>
<% end %>
<% if program :help -%>
  <% program(:help).each_pair do |title, body| %>
  <%= color title.to_s.upcase, :bold %>:
	
    <%= body %>
  <% end %>
<% end -%>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
visionmedia-commander-2.4.2 lib/commander/help_formatters/terminal/help.erb
visionmedia-commander-2.4.3 lib/commander/help_formatters/terminal/help.erb