Skip to content

Commit

Permalink
feat(cmd/network): Also show node status
Browse files Browse the repository at this point in the history
  • Loading branch information
kostko committed Jun 7, 2023
1 parent 3f7985f commit 8a4aa3e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions cmd/network/show.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,17 @@ var showCmd = &cobra.Command{
if node, err := registryConn.GetNode(ctx, idQuery); err == nil {
err = prettyPrint(node)
cobra.CheckErr(err)

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

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

Expand Down

0 comments on commit 8a4aa3e

Please sign in to comment.