Use a partial instead
This commit is contained in:
parent
fa101d91c4
commit
5d4b3958da
|
@ -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
|
|
@ -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.
|
|
@ -20,7 +20,7 @@ nomad agent-info [options]
|
|||
|
||||
## General Options
|
||||
|
||||
<%= general_options_usage %>
|
||||
<%= partial "docs/commands/_general_options" %>
|
||||
|
||||
## Output
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ allocations and information will be displayed.
|
|||
|
||||
## General Options
|
||||
|
||||
<%= general_options_usage %>
|
||||
<%= partial "docs/commands/_general_options" %>
|
||||
|
||||
## Alloc Status Options
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ indicated by exit code 1.
|
|||
|
||||
## General Options
|
||||
|
||||
<%= general_options_usage %>
|
||||
<%= partial "docs/commands/_general_options" %>
|
||||
|
||||
## Eval Status Options
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ defaults to `/` of the allocation directory.
|
|||
|
||||
## General Options
|
||||
|
||||
<%= general_options_usage %>
|
||||
<%= partial "docs/commands/_general_options" %>
|
||||
|
||||
## Fs Options
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ version of a job Nomad is running.
|
|||
|
||||
## General Options
|
||||
|
||||
<%= general_options_usage %>
|
||||
<%= partial "docs/commands/_general_options" %>
|
||||
|
||||
## Inspect Options
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ the given job will be chosen.
|
|||
#
|
||||
## General Options
|
||||
|
||||
<%= general_options_usage %>
|
||||
<%= partial "docs/commands/_general_options" %>
|
||||
|
||||
## Logs Options
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ operation is desired.
|
|||
|
||||
## General Options
|
||||
|
||||
<%= general_options_usage %>
|
||||
<%= partial "docs/commands/_general_options" %>
|
||||
|
||||
## Node Drain Options
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ to enter the "left" state.
|
|||
|
||||
## General Options
|
||||
|
||||
<%= general_options_usage %>
|
||||
<%= partial "docs/commands/_general_options" %>
|
||||
|
||||
## Examples
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ be 1.
|
|||
|
||||
## General Options
|
||||
|
||||
<%= general_options_usage %>
|
||||
<%= partial "docs/commands/_general_options" %>
|
||||
|
||||
## Examples
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ nomad server-members [options]
|
|||
|
||||
## General Options
|
||||
|
||||
<%= general_options_usage %>
|
||||
<%= partial "docs/commands/_general_options" %>
|
||||
|
||||
## Server Members Options
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ the most useful status fields for each.
|
|||
|
||||
## General Options
|
||||
|
||||
<%= general_options_usage %>
|
||||
<%= partial "docs/commands/_general_options" %>
|
||||
|
||||
## Status Options
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue