Sha256: 3b08eed321e193c1248135ccc8c449e5ad87fad6caed8d9419ce7e95a99e0aa7

Contents?: true

Size: 1.01 KB

Versions: 15

Compression:

Stored size: 1.01 KB

Contents

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

    <%= program :name %>

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

    <%= Commander::HelpFormatter.indent 4, program(:description) %>

  <%= $terminal.color "COMMANDS", :bold %>:
<% for name, command in @commands.sort -%>
	<% unless alias? name %>
    <%= "%-#{max_command_length}s %s" % [command.name, command.summary || command.description] -%>
	<% end -%>
<% end %>
<% unless @aliases.empty? %>
  <%= $terminal.color "ALIASES", :bold %>:
  <% for alias_name, args in @aliases.sort %>
    <%= "%-#{max_aliases_length}s %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 & 4 rubygems

Version Path
murano-cli-commander-4.4.10 lib/murano-cli-commander/help_formatters/terminal/help.erb
commander-4.4.6 lib/commander/help_formatters/terminal/help.erb
commander-4.4.5 lib/commander/help_formatters/terminal/help.erb
commander-4.4.4 lib/commander/help_formatters/terminal/help.erb
commander-4.4.3 lib/commander/help_formatters/terminal/help.erb
commander-4.4.2 lib/commander/help_formatters/terminal/help.erb
commander-4.4.1 lib/commander/help_formatters/terminal/help.erb
simple_commander-0.1.0 lib/simple_commander/help_formatters/terminal/help.erb
simple_commander-0.0.1 lib/simple_commander/help_formatters/terminal/help.erb
commander-4.4.0 lib/commander/help_formatters/terminal/help.erb
commander-4.3.8 lib/commander/help_formatters/terminal/help.erb
commander-4.3.7 lib/commander/help_formatters/terminal/help.erb
commander-4.3.5 lib/commander/help_formatters/terminal/help.erb
scoot-0.0.4 .bundle/gems/ruby/2.2.0/gems/commander-4.3.4/lib/commander/help_formatters/terminal/help.erb
commander-4.3.4 lib/commander/help_formatters/terminal/help.erb