fauna-shell icon indicating copy to clipboard operation
fauna-shell copied to clipboard

Support JSON output for `fauna schema status`

Open jrodewig opened this issue 11 months ago • 2 comments

We should support JSON or a similar machine-readable output for the fauna schema status command. This would make it easier to use the output of the command in scripts.

Relates to https://github.com/fauna/fauna-shell/issues/580

jrodewig avatar Jan 23 '25 19:01 jrodewig

Do we know what we'd expect the JSON structure to be? Is --json just a pass-through of the schema APIs or something more refined?

ecooper avatar Jan 23 '25 23:01 ecooper

A pass-through of the Get staged schema status endpoint's response would suffice IMO.

In the requests I've seen, users want to programmatically access the status field without doing text manipulation, etc.

jrodewig avatar Jan 23 '25 23:01 jrodewig