bloq / cloud-cli

☁️💻
MIT License
0 stars 0 forks source link

All nodes and cluster client versions #233

Closed gabmontes closed 1 year ago

gabmontes commented 1 year ago

This PR updates the nodes list command so admins can easily retrieve all user's nodes with the -A option. It also updates the clusters list command to show the exact software client version running.

$ bcl clusters list -A
ℹ Retrieving clusters...                                                                                                                                                                                                                                                                              15:34:35
✔ Got 2 clusters:                                                                                                                                                                                                                                                                                     15:34:39

id                                            alias/name                                        chain     network  version                 performance  cap  state    health  createdAt                 user            
--------------------------------------------  ------------------------------------------------  --------  -------  ----------------------  -----------  ---  -------  ------  ------------------------  ----------------
cluster-[redacte...........................]  [redacted......................................]  eth       mainnet  Geth v1.12.0 (full)     standard     2    started  100%    [redacted..............]  [redacted......]
cluster-[redacte...........................]  [redacted......................................]  eth       goerli   Geth v1.12.0 (archive)  standard     2    started  100%    [redacted..............]  [redacted......]

$ bcl nodes list -A 
ℹ Retrieving all nodes                                                                                                                                                                                                                                                                                15:36:28

✔ Got 2 nodes:                                                                                                                                                                                                                                                                                        15:36:30

id                                         ip              chain      network  version          performance  state    createdAt                 user                                     
-----------------------------------------  --------------  ---------  -------  ---------------  -----------  -------  ------------------------  -----------------------------------------
node-[redacted..........................]  [redacted....]  avalanche  fuji     avalanchego-1.7  standard     started  [redacted..............]  user-[redacted..........................]
node-[redacted..........................]  [redacted....]  avalanche  fuji     avalanchego-1.7  standard     started  [redacted..............]  user-[redacted..........................]

Process checklist

Related issue(s)

Related to #222 and #224

Metrics

Actual effort: 1.5h