forked from rubygems/guides
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommand-reference.erb
37 lines (26 loc) · 900 Bytes
/
command-reference.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
layout: default
title: Command Reference
url: /command-reference
previous: /specification-reference
next: /rubygems-org-api
---
<em class="t-gray">What each `gem` command does, and how to use it.</em>
This reference was automatically generated from RubyGems version <%= rubygems_version %>.
<%- commands.each do |name, command| -%><%= "* [gem #{name}](#gem-#{name})\n" %><%- end -%>
<%- commands.each do |name, command| -%>
## gem <%= name %>
<%= htmlify(command.summary) %>
### Usage
<%= command.usage %> [options]
<%= options_list(command).rstrip + "\n" -%>
<%- if command.arguments != "" -%>
### Arguments
<%- command.arguments.split("\n").each do |argument| -%><%= argument_list_item(argument) %>
<%- end -%>
<%- end -%>
<%- if command.description && command.description != "" -%>
### Description
<%= htmlify(command.description).gsub(/^ /, " ") %>
<%- end -%>
<%- end -%>