Sha256: 7cac40dd3df9734059c0803dc0abf7f69cfe8b3648861da551a1840ac2082beb

Contents?: true

Size: 1.04 KB

Versions: 4

Compression:

Stored size: 1.04 KB

Contents

  <%= program :name %>

  <%= program :description %>

  <%= "Commands:#{default_command_description}" %>
<% for name, command in @commands.sort -%>
<% unless alias? name -%>
    <%= "%-#{max_command_length}s #{summary_prefix(command.name)}%s" % [command.name, command.summary || command.description] %>
<% end -%>
<% end -%>
<% unless @aliases.empty? %>
  Aliases:
<% 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? -%>
  Global Options:
<% for option in @options -%>
    <%= "%-20s %s" % [option[:switches].join(', '), option[:description]] -%> 
<% end -%>
<% end -%>
<% unless default_command_options.empty? %>
  <%= "Options for #{@default_command}:" %>
<% for option in @default_command_options -%>
    <%= "%-20s %s" % [option[:switches].join(', '), option[:description]] %>
<% end -%>
<% end -%>
<% if program :help -%>
  <% for title, body in program(:help) %>
  <%= title %>:
    <%= body %>
  <% end %>
<% end -%>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
commander-fastlane-4.4.6 lib/commander/help_formatters/terminal_compact/help.erb
commander-fastlane-4.4.5 lib/commander/help_formatters/terminal_compact/help.erb
commander-fastlane-4.4.4 lib/commander/help_formatters/terminal_compact/help.erb
commander-fastlane-4.4.3 lib/commander/help_formatters/terminal_compact/help.erb