Sha256: 4e40c3d6877696159de0417836a1a1907b98fb5fc24f5dfad46b7ae703100c88

Contents?: true

Size: 743 Bytes

Versions: 7

Compression:

Stored size: 743 Bytes

Contents

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

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

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

    <%= @syntax -%>

<% end -%>

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

    <%= SimpleCommander::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 ', ' %> 
        <%= SimpleCommander::HelpFormatter.indent 8, option[:description] %>
	<% end -%>
<% end -%>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
simple_commander-0.6.1 lib/simple_commander/help_formatters/terminal/command_help.erb
simple_commander-0.6.0 lib/simple_commander/help_formatters/terminal/command_help.erb
simple_commander-0.5.1 lib/simple_commander/help_formatters/terminal/command_help.erb
simple_commander-0.5.0 lib/simple_commander/help_formatters/terminal/command_help.erb
simple_commander-0.4.0 lib/simple_commander/help_formatters/terminal/command_help.erb
simple_commander-0.3.1 lib/simple_commander/help_formatters/terminal/command_help.erb
simple_commander-0.3.0 lib/simple_commander/help_formatters/terminal/command_help.erb