nextcloud / circles

👪 Create groups with other users on a Nextcloud instance and share with them
GNU Affero General Public License v3.0
141 stars 47 forks source link

"occ circles:membership --output json ..." ignores output option and just shows plain output #1592

Open gonzalo opened 1 month ago

gonzalo commented 1 month ago

It doesn't matter if you ask for json or json_pretty.

I use this command to perform some operations with bash scripting, and it would be nice and safer to be able to parse output with some json library instead of plain sed/awk commands.

Regards

joshtrichards commented 3 weeks ago

You can sort of reverse engineer how this is handled for other commands if you feel like making an attempt to try to implement this enhancement yourself (and submit it as a PR):

https://github.com/search?q=repo%3Anextcloud%2Fcircles+path%3A%2F%5Elib%5C%2FCommand%5C%2F%2F+JSON_PRETTY_PRINT%29&type=code