Make status information available as JSON
- Vorherrschende Sprache
- Go
- Sterne
- 13.6k
- Forks
- 1.4k
- Ø Merge
- 2 Std. 31 Min.
- Gemergte PRs (30 T.)
- 4
Beschreibung
It would be great if we could get the status info available as JSON, perhaps with a `status-json` command. This would make things easier to parse by other tools and more future-proof as we don't have to think about how to format the data as new status fields get added.
This could also be made available to the `gh-ost-on-status` hook via a `GH_OST_STATUS_JSON` env var.
Related to #242 since adding more fields requires us to think about formatting.
Beitragsleitfaden
Rechercherichtung
Beginne damit, den bestehenden status-Befehl und den Einstiegspunkt des gh-ost-on-status-Hooks nachzuverfolgen. Ermittle, wie Statusfelder derzeit erzeugt werden, und definiere anschließend die JSON-Ausgabe für einen status-json-Befehl sowie den Wert des GH_OST_STATUS_JSON-Hooks; als abgeschlossen gilt die Aufgabe, wenn beide Konsumenten parsebare Statusdaten erhalten, während sich die Felder weiterentwickeln.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- go, mysql
- Bereich
- cli, database
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100