quixio / quix-cli

7 stars 0 forks source link

JSON output is inconsistent #11

Closed krisajenkins closed 2 weeks ago

krisajenkins commented 3 months ago

It seems that if you call any quix ... list --output json function, it will return an array of objects in every case except when there's one result. For a single result it unwraps the array and returns an object.

That inconsistency makes it harder to use the JSON output in tools without additional checking. I'd like it if the output for a quix ... list command was always an array, regardless of the number of elements.

luisquix commented 2 months ago

We are aware of this issue, we'll get it fixed on the next release.

Thanks for your feedback.

luisquix commented 2 weeks ago

This issue has been fixed.