cmd: add TaskID to run list output

This commit is contained in:
Carlo Mandelli 2019-12-02 08:51:11 +01:00
parent 2232e2895e
commit 8bbdc0a36e

View File

@ -77,7 +77,7 @@ func printRuns(runs []*runDetails) {
for _, run := range runs {
fmt.Printf("%s: Phase: %s, Result: %s\n", run.runResponse.ID, run.runResponse.Phase, run.runResponse.Result)
for _, task := range run.tasks {
fmt.Printf("\tTaskName: %s, Status: %s\n", task.runTaskResponse.Name, task.runTaskResponse.Status)
fmt.Printf("\tTaskName: %s, TaskID: %s, Status: %s\n", task.runTaskResponse.Name, task.runTaskResponse.ID, task.runTaskResponse.Status)
if task.retrieveError != nil {
fmt.Printf("\t\tfailed to retrieve task information: %v\n", task.retrieveError)
} else {