Skip to content

Commit

Permalink
Merge pull request #89 from oasisprotocol/kostko/feature/show-node-st…
Browse files Browse the repository at this point in the history
…atus

feat(cmd/network): Also show node status
  • Loading branch information
kostko committed Jun 8, 2023
2 parents ef2bf68 + 25a32a2 commit 2f57ff3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cmd/network/show.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,13 @@ var showCmd = &cobra.Command{
return
}

if node, err := registryConn.GetNode(ctx, idQuery); err == nil {
err = prettyPrint(node)
if nodeStatus, err := registryConn.GetNodeStatus(ctx, idQuery); err == nil {
if node, err2 := registryConn.GetNode(ctx, idQuery); err2 == nil {
err = prettyPrint(node)
cobra.CheckErr(err)
}

err = prettyPrint(nodeStatus)
cobra.CheckErr(err)
return
}
Expand Down

0 comments on commit 2f57ff3

Please sign in to comment.