Sha256: b7233779e8f90220e07f31e6e965611f6494319222beadd4a981b9b82e3f1634
Contents?: true
Size: 760 Bytes
Versions: 2
Compression:
Stored size: 760 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| -%> <% unless alias? name %> <%= "%-20s %s" % [command.name, command.summary || command.description] -%> <% end -%> <% end %> <% unless @aliases.empty? %> <%= $terminal.color "ALIASES", :bold %>: <% @aliases.each do |alias_name, args| %> <%= "%-20s %s %s" % [alias_name, command(alias_name).name, args.join(' ')] -%> <% end -%> <% end %> <% if program :help -%> <% program(:help).each_pair do |title, body| %> <%= $terminal.color title.to_s.upcase, :bold %>: <%= body %> <% end -%> <% end -%>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
visionmedia-commander-3.1.1 | lib/commander/help_formatters/terminal/help.erb |
visionmedia-commander-3.1.2 | lib/commander/help_formatters/terminal/help.erb |