Sha256: 62dfb2e76afc5deb45351cdae8d1eeffe4e43e7299492dd7f55f443ea2c9b510

Contents?: true

Size: 659 Bytes

Versions: 7

Compression:

Stored size: 659 Bytes

Contents

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

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

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

    <%= @syntax -%>

<% end -%>

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

    <%= @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 ', ' %> 
        <%= option[:description] %>
	<% end -%>
<% end -%>

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
clone-1.0.0.beta2 module/gems/commander-4.1.3/lib/commander/help_formatters/terminal/command_help.erb
clone-1.0.0.beta module/gems/commander-4.1.3/lib/commander/help_formatters/terminal/command_help.erb
commander-4.1.3 lib/commander/help_formatters/terminal/command_help.erb
commander-4.1.2 lib/commander/help_formatters/terminal/command_help.erb
commander-4.1.1 lib/commander/help_formatters/terminal/command_help.erb
commander-4.1.0 lib/commander/help_formatters/terminal/command_help.erb
commander-4.0.7 lib/commander/help_formatters/terminal/command_help.erb