Update help and error message

This commit is contained in:
Kenjiro Nakayama
2016-08-06 18:54:30 +09:00
parent 8f03eb914b
commit 4a3f63f641
6 changed files with 15 additions and 15 deletions

View File

@@ -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)

View File

@@ -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)

View File

@@ -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)

View File

@@ -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

View File

@@ -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

View File

@@ -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