(contracts []*action.WorkflowContractItem)
| 47 | } |
| 48 | |
| 49 | func contractListTableOutput(contracts []*action.WorkflowContractItem) error { |
| 50 | t := output.NewTableWriter() |
| 51 | |
| 52 | t.AppendHeader(table.Row{"Name", "Latest Revision", "Created At", "Updated At", "# Workflows", "Scope"}) |
| 53 | for _, p := range contracts { |
| 54 | t.AppendRow(table.Row{p.Name, p.LatestRevision, p.CreatedAt.Format(time.RFC822), p.LatestRevisionCreatedAt.Format(time.RFC822), len(p.WorkflowRefs), p.ScopedEntity.String()}) |
| 55 | } |
| 56 | |
| 57 | t.Render() |
| 58 | |
| 59 | return nil |
| 60 | } |
no test coverage detected