Sha256: c055f975295ff2796df69acc9c7069a50ec663eb27d081b7d200815afd98112c

Contents?: true

Size: 459 Bytes

Versions: 4

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| %>
    <%= "%-20s %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

4 entries across 4 versions & 1 rubygems

Version Path
visionmedia-commander-2.4.4 lib/commander/help_formatters/terminal/help.erb
visionmedia-commander-2.4.6 lib/commander/help_formatters/terminal/help.erb
visionmedia-commander-2.5.6 lib/commander/help_formatters/terminal/help.erb
visionmedia-commander-2.5.7 lib/commander/help_formatters/terminal/help.erb