cmd: add TaskID to run list output
This commit is contained in:
parent
2232e2895e
commit
8bbdc0a36e
|
@ -77,7 +77,7 @@ func printRuns(runs []*runDetails) {
|
||||||
for _, run := range runs {
|
for _, run := range runs {
|
||||||
fmt.Printf("%s: Phase: %s, Result: %s\n", run.runResponse.ID, run.runResponse.Phase, run.runResponse.Result)
|
fmt.Printf("%s: Phase: %s, Result: %s\n", run.runResponse.ID, run.runResponse.Phase, run.runResponse.Result)
|
||||||
for _, task := range run.tasks {
|
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 {
|
if task.retrieveError != nil {
|
||||||
fmt.Printf("\t\tfailed to retrieve task information: %v\n", task.retrieveError)
|
fmt.Printf("\t\tfailed to retrieve task information: %v\n", task.retrieveError)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue