openSUSE / docmanager

Manage DocBook 5 Meta Information
http://opensuse.github.io/docmanager/index.html
GNU General Public License v3.0
6 stars 6 forks source link

Improve Output Format of `docmanager get FILENAME` #102

Open ghost opened 9 years ago

ghost commented 9 years ago

The output of docmanager looks a bit cryptic, e.g. this example from the doc-sle repo:

   $ docmanager get xml/net_dns.xml xml/net_sdn.xml

   xml/net_dns.xml -> bugtracker=
               translation=yes
   xml/net_sdn.xml -> bugtracker=

The output would be a lot easier to read if it was formatted like this:

   $ docmanager get xml/net_dns.xml xml/net_sdn.xml

   - xml/net_dns.xml:
       - bugtracker: [empty]
       - translation: yes

   - xml/net_sdn.xml:
       - bugtracker: [empty]

Note the addition of a couple of newlines, explicitly writing out "[empty]" if the property exists but is not set to a value and the use of colons instead of equal signs

ghost commented 8 years ago

I noticed that there is also -f table which is a lot more readable too. So, making that the default would work for me.