On 14-02-17 20:08, Kenneth Hoste wrote: > > I feel this sort of terse key/value style could be useful, but only for > single-line info (e.g. homepage, contact, etc.). > > For things like 'description' and 'usage', I'm not sure this would be > useful or sensible. > > So, maybe what you're looking for is some hybrid approach, where aspects > like 'description' and 'usage' (and 'examples') are properly fleshed out > sections, where all the other info is packed together in an easy to > digest (for machines) form, like the key-value style you showed.
I don't really agree with that. The output show be nicely human readably. If you want to parse it, we should let Lmod output json (or some other serialization format). I wouldn't bother too much with making it both human + machine readable at the same time. > In an ideal world, we would have a sensible default output format, and > you would support the necessary knobs and dials to tweak the output to > your liking. For Lmod we could probably get quite far by adding some hooks. Ward

