Bug 5811 - tl-config/hivetool should have an option for machine-readable output
Summary: tl-config/hivetool should have an option for machine-readable output
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Misc (show other bugs)
Version: 4.5.0
Hardware: PC Unknown
: P2 Normal
Target Milestone: LowPrio
Assignee: Peter Åstrand
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-01 09:39 CET by Karl Mikaelsson
Modified: 2016-05-25 13:53 CEST (History)
1 user (show)

See Also:
Acceptance Criteria:


Attachments
Suggested patch (2.78 KB, patch)
2016-05-10 12:34 CEST, Peter Åstrand
Details | Diff
Updated patch which avoids trailing spaces (2.90 KB, patch)
2016-05-25 13:53 CEST, Peter Åstrand
Details | Diff

Description Karl Mikaelsson cendio 2016-03-01 09:39:45 CET
When using for example -Ra to list everything in path, the output format isn't particularly suited for machine parsing.

> $ tl-config -Ra /
> key = value
> key = value
> folder/
>     folder/
>         key = value
>     key = value
>     folder/
>         key = value
>     key = value
> folder/
>     key = value

This example could be made better by an option to always print the entire key path rather than the "leaf" name. We should also take a look at the other output formats for hivetool and make sure they're usable from shell scripts.
Comment 1 Peter Åstrand cendio 2016-05-10 12:34:37 CEST
Created attachment 690 [details]
Suggested patch
Comment 2 Peter Åstrand cendio 2016-05-25 13:53:33 CEST
Created attachment 696 [details]
Updated patch which avoids trailing spaces

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