FuelLabs / fuel-indexer

🗃 The Fuel indexer is a standalone service that can be used to index various components of the Fuel blockchain.
https://docs.fuel.network/docs/indexer/
140 stars 66 forks source link

enhancement: forc index status formatting update #1365

Closed lostman closed 12 months ago

lostman commented 1 year ago

Description

I think the current output of forc index status, which includes a pretty-printed JSON response, looks slightly off:

✅ Sucessfully fetched service health:

{
  "client_status": "OK",
  "database_status": "OK",
  "uptime": "246"
}
─ fuellabs
   └─ explorer
      • id: 1
      • created_at: 2023-09-19 16:32:05.413191 UTC
      • pubkey: None

This PR makes a small change:

✅ Successfully fetched service health:

client status: OK
database status: OK
uptime: 24m 10s

indexers:
─ fuellabs
   └─ explorer
      • id: 2
      • created at: 2023-09-19 17:21:51.887567 UTC
      • pubkey: None

Testing steps

CI should pass.

Changelog