func tableFmtStates()

in cli/cmd/ls.go [96:107]


func tableFmtStates(states []State) {
	fmt.Printf("Listing Stacks in [%s] GCP project", Project)
	fmt.Println()
	fmt.Println()
	headerFmt := color.New().SprintfFunc()
	tbl := table.New("ID", "NAME", "STATUS", "UPDATED", "INITIATOR")
	tbl.WithHeaderFormatter(headerFmt)
	for _, widget := range states {
		tbl.AddRow(widget.ID, widget.Name, widget.Status, timeago.English.Format(widget.LatestOP.Timestamp), widget.LatestOP.Initiator)
	}
	tbl.Print()
}