vertical output formatter

Registered by Doug Hellmann

From eglynn: To avoid very wide table-formtatted output becoming difficult to read, it would be great to have an analogue of the mysql client's \G modifier to display attributes vertically (i.e. one line per attribute with some sort of paragraph separator between items).

Blueprint information

Status:
Not started
Approver:
None
Priority:
Undefined
Drafter:
None
Direction:
Needs approval
Assignee:
None
Definition:
New
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

There are a couple of ways to do this. We could create a separate formatter, with a fixed format.

We could also add an option to the list command to show individual items instead of "tables". That option would find the show formatters instead of the list formatters, and then loop over the data and call emit_one().

The latter is a bit more complicated, but the benefit is the user can still control the output format. You could do something like

cmd list something --one-at-a-time -f table
cmd list something --one-at-a-time -f some-other-formatter

In practice I'm not sure how many different formatters would support this mode, though.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.