Sha256: a1f0a0e239f3bbcf62503d9a31dbda754bf9dc8a46a0cc40630e56aa96ec6dde

Contents?: true

Size: 499 Bytes

Versions: 4

Compression:

Stored size: 499 Bytes

Contents

  <%= $terminal.color "NAME", :bold %>:

    <%= program :name %>

  <%= $terminal.color "DESCRIPTION", :bold %>:

    <%= program :description %>

  <%= $terminal.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| %>
  <%= $terminal.color title.to_s.upcase, :bold %>:
	
    <%= body %>
  <% end %>
<% end -%>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
visionmedia-commander-3.0.0 lib/commander/help_formatters/terminal/help.erb
visionmedia-commander-3.0.1 lib/commander/help_formatters/terminal/help.erb
visionmedia-commander-3.0.2 lib/commander/help_formatters/terminal/help.erb
visionmedia-commander-3.0.3 lib/commander/help_formatters/terminal/help.erb