Use a partial instead

This commit is contained in:
Seth Vargo 2016-10-27 20:46:20 -04:00
parent fa101d91c4
commit 5d4b3958da
No known key found for this signature in database
GPG Key ID: 905A90C2949E8787
19 changed files with 24 additions and 31 deletions

View File

@ -1,15 +0,0 @@
module CommandHelpers
# Returns the markdown text for the general options usage.
def general_options_usage()
<<EOF
* `-address=<addr>`: The address of the Nomad server. Overrides the `NOMAD_ADDR`
environment variable if set. Defaults to `http://127.0.0.1:4646`.
* `-region=<region>`: The region of the Nomad server to forward commands to.
Overrides the `NOMAD_REGION` environment variable if set. Defaults to the
Agent's local region.
* `-no-color`: Disables colored command output.
EOF
end
end

View File

@ -0,0 +1,8 @@
- `-address=<addr>`: The address of the Nomad server. Overrides the `NOMAD_ADDR`
environment variable if set. Defaults to `http://127.0.0.1:4646`.
- `-region=<region>`: The region of the Nomad server to forward commands to.
Overrides the `NOMAD_REGION` environment variable if set. Defaults to the
Agent's local region.
- `-no-color`: Disables colored command output.

View File

@ -20,7 +20,7 @@ nomad agent-info [options]
## General Options
<%= general_options_usage %>
<%= partial "docs/commands/_general_options" %>
## Output

View File

@ -25,7 +25,7 @@ allocations and information will be displayed.
## General Options
<%= general_options_usage %>
<%= partial "docs/commands/_general_options" %>
## Alloc Status Options

View File

@ -23,7 +23,7 @@ description below for specific usage information and requirements.
## General Options
<%= general_options_usage %>
<%= partial "docs/commands/_general_options" %>
## Client Config Options

View File

@ -40,7 +40,7 @@ indicated by exit code 1.
## General Options
<%= general_options_usage %>
<%= partial "docs/commands/_general_options" %>
## Eval Status Options

View File

@ -33,7 +33,7 @@ defaults to `/` of the allocation directory.
## General Options
<%= general_options_usage %>
<%= partial "docs/commands/_general_options" %>
## Fs Options

View File

@ -23,7 +23,7 @@ version of a job Nomad is running.
## General Options
<%= general_options_usage %>
<%= partial "docs/commands/_general_options" %>
## Inspect Options

View File

@ -23,7 +23,7 @@ the given job will be chosen.
#
## General Options
<%= general_options_usage %>
<%= partial "docs/commands/_general_options" %>
## Logs Options

View File

@ -31,7 +31,7 @@ operation is desired.
## General Options
<%= general_options_usage %>
<%= partial "docs/commands/_general_options" %>
## Node Drain Options

View File

@ -30,7 +30,7 @@ information will be displayed. If running the command on a Nomad Client, the
## General Options
<%= general_options_usage %>
<%= partial "docs/commands/_general_options" %>
## Node Status Options

View File

@ -53,7 +53,7 @@ Plan will return one of the following exit codes:
## General Options
<%= general_options_usage %>
<%= partial "docs/commands/_general_options" %>
## Plan Options

View File

@ -45,7 +45,7 @@ precedence, going from highest to lowest: the `-vault-token` flag, the
## General Options
<%= general_options_usage %>
<%= partial "docs/commands/_general_options" %>
## Run Options

View File

@ -24,7 +24,7 @@ to enter the "left" state.
## General Options
<%= general_options_usage %>
<%= partial "docs/commands/_general_options" %>
## Examples

View File

@ -26,7 +26,7 @@ be 1.
## General Options
<%= general_options_usage %>
<%= partial "docs/commands/_general_options" %>
## Examples

View File

@ -23,7 +23,7 @@ nomad server-members [options]
## General Options
<%= general_options_usage %>
<%= partial "docs/commands/_general_options" %>
## Server Members Options

View File

@ -26,7 +26,7 @@ the most useful status fields for each.
## General Options
<%= general_options_usage %>
<%= partial "docs/commands/_general_options" %>
## Status Options

View File

@ -29,7 +29,7 @@ reached a terminal state. It is safe to exit the monitor early using ctrl+c.
## General Options
<%= general_options_usage %>
<%= partial "docs/commands/_general_options" %>
## Stop Options