Sha256: c37d3d1cf80ed5234045c0635fe34a2451b708699fa2a676c897f9408bc1d4a7

Contents?: true

Size: 956 Bytes

Versions: 15

Compression:

Stored size: 956 Bytes

Contents

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

    <%= program :name %>

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

    <%= program :description %>

  <%= $terminal.color "COMMANDS", :bold %>:
<% for name, command in @commands.sort -%>
	<% unless alias? name %>
    <%= "%-20s %s" % [command.name, command.summary || command.description] -%>
	<% end -%>
<% end %>
<% unless @aliases.empty? %>
  <%= $terminal.color "ALIASES", :bold %>:
  <% for alias_name, args in @aliases.sort %>
    <%= "%-20s %s %s" % [alias_name, command(alias_name).name, args.join(' ')] -%>
  <% end %>
<% end %>
<% unless @options.empty? -%>
  <%= $terminal.color "GLOBAL OPTIONS", :bold %>:
	<% for option in @options -%>

    <%= option[:switches].join ', ' %> 
        <%= option[:description] %>
	<% end -%>
<% end -%>
<% if program :help -%>
  <% for title, body in program(:help) %>
  <%= $terminal.color title.to_s.upcase, :bold %>:

    <%= body %>
  <% end -%>
<% end -%>

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
clone-1.0.0.beta2 module/gems/commander-4.1.3/lib/commander/help_formatters/terminal/help.erb
clone-1.0.0.beta module/gems/commander-4.1.3/lib/commander/help_formatters/terminal/help.erb
commander-4.1.3 lib/commander/help_formatters/terminal/help.erb
commander-4.1.2 lib/commander/help_formatters/terminal/help.erb
commander-4.1.1 lib/commander/help_formatters/terminal/help.erb
commander-4.1.0 lib/commander/help_formatters/terminal/help.erb
commander-4.0.7 lib/commander/help_formatters/terminal/help.erb
commander-4.0.6 lib/commander/help_formatters/terminal/help.erb
commander-4.0.5 lib/commander/help_formatters/terminal/help.erb
commander-4.0.4 lib/commander/help_formatters/terminal/help.erb
commander-4.0.3 lib/commander/help_formatters/terminal/help.erb
commander-4.0.2 lib/commander/help_formatters/terminal/help.erb
commander-4.0.1 lib/commander/help_formatters/terminal/help.erb
commander-4.0.0 lib/commander/help_formatters/terminal/help.erb
commander-3.3.0 lib/commander/help_formatters/terminal/help.erb