Sha256: 22dd212e1064fc0571fbbab5f1e25e8e37f397f939411014f3b2f2f2bcb33cb6

Contents?: true

Size: 810 Bytes

Versions: 6

Compression:

Stored size: 810 Bytes

Contents

  <%= HighLine.default_instance.color "NAME", :bold %>:

    <%= @name %>
<% if @syntax -%>

  <%= HighLine.default_instance.color "SYNOPSIS", :bold %>:

    <%= @syntax -%>

<% end -%>

  <%= HighLine.default_instance.color "DESCRIPTION", :bold %>:

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

<% unless @examples.empty? -%>

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

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

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

    <%= option[:switches].join ', ' %>
        <%= Commander::HelpFormatter.indent 8, option[:description] %>
	<% end -%>
<% end -%>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
commander-5.0.0 lib/commander/help_formatters/terminal/command_help.erb
commander-4.6.0 lib/commander/help_formatters/terminal/command_help.erb
commander-4.5.2 lib/commander/help_formatters/terminal/command_help.erb
commander-4.5.1 lib/commander/help_formatters/terminal/command_help.erb
commander-4.5.0 lib/commander/help_formatters/terminal/command_help.erb
commander-4.4.7 lib/commander/help_formatters/terminal/command_help.erb