Merge pull request #188 from camandel/add_taskid_run_list

cmd: add TaskID to run list output
This commit is contained in:
Simone Gotti 2019-12-02 13:41:06 +01:00 committed by GitHub
commit b8d12d7962
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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 {