Bug 1334692

Summary: [RFE] Make it possible to switch report output format to dense form
Product: [Community] LVM and device-mapper Reporter: Peter Rajnoha <prajnoha>
Component: lvm2Assignee: Peter Rajnoha <prajnoha>
lvm2 sub component: Displaying and Reporting QA Contact: cluster-qe <cluster-qe>
Status: NEW --- Docs Contact:
Severity: low    
Priority: low CC: agk, heinzm, jbrassow, msnitzer, prajnoha, zkabelac
Version: unspecifiedKeywords: FutureFeature
Target Milestone: ---Flags: rule-engine: lvm-technical-solution?
rule-engine: lvm-test-coverage?
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1334655    
Bug Blocks: 1334682, 1346079    

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.