nosarthur / gita

Manage many git repos with sanity 从容管理多个git库
MIT License
1.67k stars 73 forks source link

Output as json #222

Open AckslD opened 2 years ago

AckslD commented 2 years ago

Would it be possible to have the stdout from for example gita ll to be outputted as json to more easily be able to parse it and integrate with other tools?

nosarthur commented 2 years ago

sure, we can add an option gita ll --json for example

AckslD commented 2 years ago

That would be great :)

nosarthur commented 1 year ago

To make this work, we should make utils.describe return a dict instead of str, then the f_ll function can display the repo information in any requested format.

The caveat is that all information needs to be collected before the display