fix(helm): print status in helm list output

This prints the status in the long output of helm list,
pull/733/head
Matt Butcher 8 years ago
parent 5ddae22a09
commit 7c9e799fe7

@ -108,11 +108,12 @@ func listCmd(cmd *cobra.Command, args []string) error {
func formatList(rels []*release.Release) error {
table := uitable.New()
table.MaxColWidth = 30
table.AddRow("NAME", "UPDATED", "CHART")
table.AddRow("NAME", "UPDATED", "STATUS", "CHART")
for _, r := range rels {
c := fmt.Sprintf("%s-%s", r.Chart.Metadata.Name, r.Chart.Metadata.Version)
t := timeconv.String(r.Info.LastDeployed)
table.AddRow(r.Name, t, c)
s := r.Info.Status.Code.String()
table.AddRow(r.Name, t, s, c)
}
fmt.Println(table)

Loading…
Cancel
Save