Skip to content

Commit

Permalink
fix(cli): display integration update by/update time
Browse files Browse the repository at this point in the history
Contributes #169

Signed-off-by: Salim Afiune Maya <[email protected]>
  • Loading branch information
afiune committed Aug 3, 2020
1 parent a1b5096 commit 06fcb43
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cli/cmd/integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,8 @@ func buildIntDetailsTable(integrations []api.RawIntegration) string {
if len(integrations) != 0 {
integration := integrations[0]
t.AppendBulk(reflectIntegrationData(integration))
t.Append([]string{"UPDATE AT", integration.CreatedOrUpdatedTime})
t.Append([]string{"UPDATE BY", integration.CreatedOrUpdatedBy})
t.AppendBulk(buildIntegrationState(integration.State))
}
t.Render()
Expand All @@ -311,8 +313,8 @@ func buildIntDetailsTable(integrations []api.RawIntegration) string {
func buildIntegrationState(state *api.IntegrationState) [][]string {
if state != nil {
return [][]string{
[]string{"LAST UPDATED TIME", state.LastUpdatedTime},
[]string{"LAST SUCCESSFUL TIME", state.LastSuccessfulTime},
[]string{"STATE UPDATED AT", state.LastUpdatedTime},
[]string{"LAST SUCCESSFUL STATE", state.LastSuccessfulTime},
}
}

Expand Down

0 comments on commit 06fcb43

Please sign in to comment.