Yay: Print config not human friendly

Created on 17 Dec 2017  路  4Comments  路  Source: Jguer/yay

The flag --printconfig just prints the JSON in a single line with no trailing newline. It would be more helpful to pretty print it.

help wanted

Most helpful comment

@Jguer Have you worked on this yet? If not I can take a stab at it.

All 4 comments

And it's not even a valid JSON by the way, but a print-out of the go's struct 馃檪

I think the output should be exactly what cat ~/.config/yay/config.json is showing, formatted real JSON.

Printing out the go struct was the easiest and fastest way for debugging. It should be relatively easy to make it print more beautifully if someone wants to take it up, otherwise I can do it on the 24th.

@Jguer Have you worked on this yet? If not I can take a stab at it.

Sorry for the late reply @AnthonyLam , feel free to take a stab at it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bazeeel picture bazeeel  路  4Comments

renom picture renom  路  3Comments

captn3m0 picture captn3m0  路  4Comments

x70b1 picture x70b1  路  4Comments

parkerlreed picture parkerlreed  路  3Comments