Skip to content

Commit

Permalink
wip: add `peer connections
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanchriswhite committed Jun 6, 2023
1 parent ca4217d commit 39a2f3e
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions app/client/cli/peer/connections.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//go:build debugt

package peer

import (
"github.com/pokt-network/pocket/app/client/cli"
"github.com/pokt-network/pocket/shared/modules"
"github.com/spf13/cobra"
"log"
)

var connectionsCmd = &cobra.Command{
Use: "connections",
Short: "Print open peer connections",
RunE: connectionsRunE,
}

func connectionsRunE(cmd *cobra.Command, _ []string) error {
bus, ok := cli.GetValueFromCLIContext[modules.Bus](cmd, cli.BusCLICtxKey)
if !ok {
log.Fatal("unable to get bus from context")
}

return nil
}

0 comments on commit 39a2f3e

Please sign in to comment.