openfga / cli

A cross-platform CLI to interact with an OpenFGA server
https://openfga.dev
Apache License 2.0
50 stars 25 forks source link

Improve user and script-usage by having consistent flags that would disable "pretty" features and prioritize JSON responses #361

Open rhamzeh opened 4 months ago

rhamzeh commented 4 months ago

Currently our scripts have different flag for usage by people that focuses on improving DX (emojis, statuses, progress bars, using non-JSON for display), and others like the models have a flag to display in parsable JSON syntax.

We should settle on consistent global flags that users can turn on when using scripts or in CI that would disable all pretty features and focuses on parsability.

We should also have a better exposed interface that users can track to understand breaking changes and what values they can retrieve from the outputs.

Siddhant-K-code commented 3 months ago

bump to this issue for #362 review 🙏🏻

Siddhant-K-code commented 2 months ago

I think, we have JSON responses for almost all the commands, could you give any example command output (that might be needed in CI or script) that doesn't give out the JSON res.?