Bug 1334692 - [RFE] Make it possible to switch report output format to dense form
Summary: [RFE] Make it possible to switch report output format to dense form
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: LVM and device-mapper
Classification: Community
Component: lvm2
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
: ---
Assignee: Peter Rajnoha
QA Contact: cluster-qe
URL:
Whiteboard:
Depends On: 1334655
Blocks: 1334682 1346079
TreeView+ depends on / blocked
 
Reported: 2016-05-10 10:53 UTC by Peter Rajnoha
Modified: 2024-08-12 10:36 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-08-12 10:36:19 UTC
Embargoed:
rule-engine: lvm-technical-solution?
rule-engine: lvm-test-coverage?


Attachments (Terms of Use)

Description Peter Rajnoha 2016-05-10 10:53:01 UTC
By default, report output is formatted in way so it's easy to ready for humans and it has "pretty" formatting with spaces and indentation.

However, in some cases, it's not needed to do this as the only consumer of the output may be a machine reading the output. In that case, it's worth adding a switch which switches current format into its dense form, leaving out unnecessary spaces and indentation.

Comment 1 Peter Rajnoha 2016-05-17 02:26:26 UTC
The way the condensed form is done is format-specific. Where the format allows that so it's still parseable in unambiguous way, the whole report may end up as one line (e.g. JSON).

Note: there's exising --aligned option for reporting tools. This may be reused or we could as well introduce --unaligned option if default output is aligned already and unaligned is non-default.

Comment 4 Peter Rajnoha 2024-08-12 10:36:19 UTC
No plan to implement this unless there's a demand from users.


Note You need to log in before you can comment on or make changes to this bug.