more review feedback

This commit is contained in:
Preetha Appan
2018-05-11 13:39:55 -05:00
parent e2f13d2807
commit b2006cc784
2 changed files with 13 additions and 5 deletions

View File

@@ -31,10 +31,11 @@ Eval Options:
-force-reschedule
Force reschedule failed allocations even if they are not currently
eligible for rescheduling.
-detach
Return immediately instead of entering monitor mode. After deployment
resume, the evaluation ID will be printed to the screen, which can be used
to examine the evaluation using the eval-status command.
Return immediately instead of entering monitor mode. The ID
of the evaluation created will be printed to the screen, which can be
used to examine the evaluation using the eval-status command.
-verbose
Display full information.
@@ -43,7 +44,7 @@ Eval Options:
}
func (c *JobEvalCommand) Synopsis() string {
return "Force an evaluation for the job using its job ID"
return "Force an evaluation for the job"
}
func (c *JobEvalCommand) AutocompleteFlags() complete.Flags {
@@ -116,8 +117,9 @@ func (c *JobEvalCommand) Run(args []string) int {
c.Ui.Error(fmt.Sprintf("Error evaluating job: %s", err))
return 1
}
c.Ui.Output(fmt.Sprintf("Created eval ID: %q ", limit(evalId, length)))
if detach {
c.Ui.Output(fmt.Sprintf("Created eval ID: %q ", limit(evalId, length)))
return 0
}

View File

@@ -31,6 +31,12 @@ If this is set, failed allocations that are past their reschedule limit, and tho
scheduled to be replaced at a future time are placed immediately. This option only places failed
allocations if the task group has rescheduling enabled.
* `-detach`: Return immediately instead of monitoring. A new evaluation ID
will be output, which can be used to examine the evaluation using the
[eval status](/docs/commands/eval-status.html) command
* `-verbose`: Show full information.
## Examples
Evaluate the job with ID "job1":