Sha256: b472b6a1e525525178b98ea3b566cfdb4ca21b8daadf9c326386c8a7851ccd25

Contents?: true

Size: 850 Bytes

Versions: 2

Compression:

Stored size: 850 Bytes

Contents

<% if !@syntax -%>
  <%= $terminal.color "NAME", :bold %>:

    <%= @name %>
<% else -%>
  <%= $terminal.color "SYNOPSIS", :bold %>:

    <%= @syntax -%>

<% end -%>

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

    <%= Commander::HelpFormatter.indent 4, (@description || @summary || 'No description.') -%>

<% unless @examples.empty? -%>

  <%= $terminal.color "EXAMPLES", :bold %>:
	<% for description, command in @examples -%>

    # <%= description %>
    <%= command %>
	<% end -%>
<% end -%>
<% unless @options.empty? -%>

  <%= $terminal.color "OPTIONS", :bold %>:
	<% for option in @options -%>

    <%= option[:switches].join ', ' %> 
        <%= Commander::HelpFormatter.indent 8, option[:description] %><% if option[:default] %>
        <%= $terminal.color "Default", :bold %>: <%= option[:default] %><% end %>
  <% end -%>
<% end -%>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
commander-openflighthpc-1.0.0 lib/commander/help_formatters/terminal/command_help.erb
commander-openflighthpc-1.0.0.pre.alpha1 lib/commander/help_formatters/terminal/command_help.erb