From 39a2f3ecc21f4271b50d2106f94d0d95a803fc3a Mon Sep 17 00:00:00 2001 From: Bryan White Date: Tue, 6 Jun 2023 09:18:09 +0200 Subject: [PATCH] wip: add `peer connections --- app/client/cli/peer/connections.go | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 app/client/cli/peer/connections.go diff --git a/app/client/cli/peer/connections.go b/app/client/cli/peer/connections.go new file mode 100644 index 000000000..240124463 --- /dev/null +++ b/app/client/cli/peer/connections.go @@ -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 +}