graphql-hive / graphql-hive/console
Hive CLI output should support JSON format
- Dominant language
- TypeScript
- Stars
- 483
- Forks
- 145
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 65
Description
To make it easier to extract critical fields from Hive CLI output, we should support a new argument `--output=json|text`.
This can be implemented on a per-command need but should be eventually supported on all commands. The most critical command is `schema:check`. The check ID and slug should be output as separate fields in the JSON output.
This will allow teams to use the schema check ID to call the public API and perform followup operations.
Contributor guide
Research direction
Start by locating the Hive CLI entry point and the schema:check command, then inspect how its current output exposes the check ID and slug. Define the --output=json|text behavior for that command first, and verify that JSON presents the ID and slug as separate fields while preserving text output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- graphql, typescript
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100