Format implements OutputFormat.
(_ context.Context, data any)
| 153 | |
| 154 | // Format implements OutputFormat. |
| 155 | func (f *tableFormat) Format(_ context.Context, data any) (string, error) { |
| 156 | headers := make(table.Row, len(f.allColumns)) |
| 157 | for i, header := range f.allColumns { |
| 158 | headers[i] = header |
| 159 | } |
| 160 | return renderTable(data, f.sort, headers, f.columns) |
| 161 | } |
| 162 | |
| 163 | type jsonFormat struct{} |
| 164 |
nothing calls this directly
no test coverage detected