Skip to content

Commit

Permalink
managerclient: task runs remove end time
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatczuk committed Jan 12, 2022
1 parent a4a30c7 commit 1098fe6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/managerclient/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -455,14 +455,14 @@ type TaskRunSlice []*TaskRun

// Render renders TaskRunSlice in a tabular format.
func (tr TaskRunSlice) Render(w io.Writer) error {
t := table.New("ID", "Start time", "End time", "Duration", "Status")
t.LimitColumnLength(4)
t := table.New("ID", "Start time", "Duration", "Status")
t.LimitColumnLength(3)
for _, r := range tr {
s := r.Status
if r.Cause != "" {
s += " " + r.Cause
}
t.AddRow(r.ID, FormatTime(r.StartTime), FormatTime(r.EndTime), FormatDuration(r.StartTime, r.EndTime), s)
t.AddRow(r.ID, FormatTime(r.StartTime), FormatDuration(r.StartTime, r.EndTime), s)
}
if _, err := w.Write([]byte(t.String())); err != nil {
return err
Expand Down

0 comments on commit 1098fe6

Please sign in to comment.