Skip to content

Commit

Permalink
Add AddonStatus on scalingo addons command
Browse files Browse the repository at this point in the history
Fix #603
  • Loading branch information
john-scalingo committed Nov 21, 2020
1 parent 0fba05e commit eae3d5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ func List(app string) error {
}

t := tablewriter.NewWriter(os.Stdout)
t.SetHeader([]string{"Addon", "ID", "Plan"})
t.SetHeader([]string{"Addon", "ID", "Plan", "Status"})

for _, resource := range resources {
t.Append([]string{resource.AddonProvider.Name, resource.ID, resource.Plan.Name})
t.Append([]string{resource.AddonProvider.Name, resource.ID, resource.Plan.Name, string(resource.Status)})
}
t.Render()

Expand Down

0 comments on commit eae3d5c

Please sign in to comment.