mirror of
https://github.com/kemko/nomad.git
synced 2026-01-10 12:25:42 +03:00
Update help and error message
This commit is contained in:
@@ -45,10 +45,10 @@ Alloc Status Options:
|
||||
Show full information.
|
||||
|
||||
-json
|
||||
Display information with json format.
|
||||
Output the allocation in its JSON format.
|
||||
|
||||
-t
|
||||
Set golang templates format and display information with it.
|
||||
Format and display allocation using a Go template.
|
||||
`
|
||||
|
||||
return strings.TrimSpace(helpText)
|
||||
@@ -155,7 +155,7 @@ func (c *AllocStatusCommand) Run(args []string) int {
|
||||
|
||||
out, err := f.TransformData(alloc)
|
||||
if err != nil {
|
||||
c.Ui.Error(fmt.Sprintf("Error transform the data: %s", err))
|
||||
c.Ui.Error(fmt.Sprintf("Error formatting the data: %s", err))
|
||||
return 1
|
||||
}
|
||||
c.Ui.Output(out)
|
||||
|
||||
@@ -33,10 +33,10 @@ Eval Status Options:
|
||||
Show full information.
|
||||
|
||||
-json
|
||||
Display information with json format.
|
||||
Output the evaluation in its JSON format.
|
||||
|
||||
-t
|
||||
Set golang templates format and display information with it.
|
||||
Format and display evaluation using a Go template.
|
||||
`
|
||||
|
||||
return strings.TrimSpace(helpText)
|
||||
@@ -149,7 +149,7 @@ func (c *EvalStatusCommand) Run(args []string) int {
|
||||
|
||||
out, err := f.TransformData(eval)
|
||||
if err != nil {
|
||||
c.Ui.Error(fmt.Sprintf("Error transform the data: %s", err))
|
||||
c.Ui.Error(fmt.Sprintf("Error formatting the data: %s", err))
|
||||
return 1
|
||||
}
|
||||
c.Ui.Output(out)
|
||||
|
||||
@@ -70,10 +70,10 @@ Node Status Options:
|
||||
Display full information.
|
||||
|
||||
-json
|
||||
Display information with json format.
|
||||
Output the node in its JSON format.
|
||||
|
||||
-t
|
||||
Set golang templates format and display information with it.
|
||||
Format and display node using a Go template.
|
||||
`
|
||||
return strings.TrimSpace(helpText)
|
||||
}
|
||||
@@ -242,7 +242,7 @@ func (c *NodeStatusCommand) Run(args []string) int {
|
||||
|
||||
out, err := f.TransformData(node)
|
||||
if err != nil {
|
||||
c.Ui.Error(fmt.Sprintf("Error transform the data: %s", err))
|
||||
c.Ui.Error(fmt.Sprintf("Error formatting the data: %s", err))
|
||||
return 1
|
||||
}
|
||||
c.Ui.Output(out)
|
||||
|
||||
@@ -31,8 +31,8 @@ allocations and information will be displayed.
|
||||
|
||||
* `-short`: Display short output. Shows only the most recent task event.
|
||||
* `-verbose`: Show full information.
|
||||
* `-json` : Display information with json format.
|
||||
* `-t` : Set golang templates format and display information with it.
|
||||
* `-json` : Output the allocation in its JSON format.
|
||||
* `-t` : Format and display allocation using a Go template.
|
||||
|
||||
## Examples
|
||||
|
||||
|
||||
@@ -48,9 +48,9 @@ indicated by exit code 1.
|
||||
|
||||
* `-verbose`: Show full information.
|
||||
|
||||
* `-json` : Display information with json format.
|
||||
* `-json` : Output the evaluation in its JSON format.
|
||||
|
||||
* `-t` : Set golang templates format and display information with it.
|
||||
* `-t` : Format and display evaluation using a Go template.
|
||||
|
||||
## Examples
|
||||
|
||||
|
||||
@@ -45,9 +45,9 @@ information will be displayed. If running the command on a Nomad Client, the
|
||||
|
||||
* `-verbose`: Show full information.
|
||||
|
||||
* `-json` : Display information with json format.
|
||||
* `-json` : Output the node in its JSON format.
|
||||
|
||||
* `-t` : Set golang templates format and display information with it.
|
||||
* `-t` : Format and display node using a Go template.
|
||||
|
||||
|
||||
## Examples
|
||||
|
||||
Reference in New Issue
Block a user