Skip to content

Commit

Permalink
Add task list to CLI search workflow output (cadence-workflow#3183)
Browse files Browse the repository at this point in the history
* Add task list to CLI search workflow output
  • Loading branch information
mkolodezny authored Apr 9, 2020
1 parent 91d9d86 commit 651a26b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ require (
github.com/xwb1989/sqlparser v0.0.0-20180606152119-120387863bf2
go.opencensus.io v0.22.2 // indirect
go.uber.org/atomic v1.5.1
go.uber.org/cadence v0.9.1-0.20200128004345-b282629d5ba9
go.uber.org/cadence v0.11.3-0.20200408211929-2e8992a5ef2d
go.uber.org/fx v1.9.0
go.uber.org/multierr v1.3.0
go.uber.org/net/metrics v1.2.0 // indirect
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,8 @@ go.uber.org/atomic v1.5.1 h1:rsqfU5vBkVknbhUGbAUwQKR2H4ItV8tjJ+6kJX4cxHM=
go.uber.org/atomic v1.5.1/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ=
go.uber.org/cadence v0.9.1-0.20200128004345-b282629d5ba9 h1:pmI3CA6StKZ56BfVQBdqjRbOScrgKY9zAQHw2QiYplg=
go.uber.org/cadence v0.9.1-0.20200128004345-b282629d5ba9/go.mod h1:VQIAZxvehjwln/xaRv1ghzcxo7TjCHEetZQkc8NlrvE=
go.uber.org/cadence v0.11.3-0.20200408211929-2e8992a5ef2d h1:65lxEqVKw7HDFojwOrc7CaIhaQQKQ2UJonogoI4nCKg=
go.uber.org/cadence v0.11.3-0.20200408211929-2e8992a5ef2d/go.mod h1:VQIAZxvehjwln/xaRv1ghzcxo7TjCHEetZQkc8NlrvE=
go.uber.org/dig v1.7.0 h1:E5/L92iQTNJTjfgJF2KgU+/JpMaiuvK2DHLBj0+kSZk=
go.uber.org/dig v1.7.0/go.mod h1:z+dSd2TP9Usi48jL8M3v63iSBVkiwtVyMKxMZYYauPg=
go.uber.org/fx v1.9.0 h1:7OAz8ucp35AU8eydejpYG7QrbE8rLKzGhHbZlJi5LYY=
Expand Down
7 changes: 3 additions & 4 deletions tools/cli/workflowCommands.go
Original file line number Diff line number Diff line change
Expand Up @@ -987,8 +987,8 @@ func createTableForListWorkflow(c *cli.Context, listAll bool, queryOpen bool) *t
table := tablewriter.NewWriter(os.Stdout)
table.SetBorder(false)
table.SetColumnSeparator("|")
header := []string{"Workflow Type", "Workflow ID", "Run ID", "Start Time", "Execution Time"}
headerColor := []tablewriter.Colors{tableHeaderBlue, tableHeaderBlue, tableHeaderBlue, tableHeaderBlue, tableHeaderBlue}
header := []string{"Workflow Type", "Workflow ID", "Run ID", "Task List", "Start Time", "Execution Time"}
headerColor := []tablewriter.Colors{tableHeaderBlue, tableHeaderBlue, tableHeaderBlue, tableHeaderBlue, tableHeaderBlue, tableHeaderBlue}
if !queryOpen {
header = append(header, "End Time")
headerColor = append(headerColor, tableHeaderBlue)
Expand Down Expand Up @@ -1086,8 +1086,7 @@ func appendWorkflowExecutionsToTable(
executionTime = convertTime(e.GetExecutionTime(), !printDateTime)
closeTime = convertTime(e.GetCloseTime(), !printDateTime)
}
// TODO add TaskList after client upgrade
row := []string{trimWorkflowType(e.Type.GetName()), e.Execution.GetWorkflowId(), e.Execution.GetRunId(), startTime, executionTime}
row := []string{trimWorkflowType(e.Type.GetName()), e.Execution.GetWorkflowId(), e.Execution.GetRunId(), e.GetTaskList(), startTime, executionTime}
if !queryOpen {
row = append(row, closeTime)
}
Expand Down

0 comments on commit 651a26b

Please sign in to comment.