in cli/cmd/show.go [79:98]
func tableFmtState(state State) {
fmt.Printf("Showing details of [%s]", state.ID)
fmt.Println()
tbl := table.New("", "")
tbl.AddRow("Stack ID", state.ID)
tbl.AddRow("Stack Name", state.Name)
tbl.AddRow("Latest Status", state.Status)
tbl.AddRow("Last Updated", timeago.English.Format(state.LatestOP.Timestamp))
tbl.AddRow("Initiator", state.LatestOP.Initiator)
tbl.AddRow("State File Location", state.StateLocation.Uri)
tbl.Print()
fmt.Println()
tblComponents := table.New("COMPONENT NAME", "STATUS")
headerFmt := color.New().SprintfFunc()
tblComponents.WithHeaderFormatter(headerFmt)
for _, widget := range state.Components {
tblComponents.AddRow(widget.Name, widget.Status)
}
tblComponents.Print()
}