Sha256: 1e667e9ae3bdb670b4eead77f763e0718a8d66e1d24a85afe28f0245a7de9a50
Contents?: true
Size: 1.02 KB
Versions: 2
Compression:
Stored size: 1.02 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 @help_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 @help_options.empty? -%> <%= $terminal.color "GLOBAL OPTIONS", :bold %>: <% for option in @help_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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
commander-openflighthpc-1.0.0 | lib/commander/help_formatters/terminal/help.erb |
commander-openflighthpc-1.0.0.pre.alpha1 | lib/commander/help_formatters/terminal/help.erb |