package cli import ( "github.com/mitchellh/cli" ) // PeersCommand is the command to group the peers commands type PeersCommand struct { UI cli.Ui } // Help implements the cli.Command interface func (c *PeersCommand) Help() string { return `Usage: bor peers This command groups actions to interact with peers. List the connected peers: $ bor peers list Add a new peer by enode: $ bor peers add Remove a connected peer by enode: $ bor peers remove Display information about a peer: $ bor peers status ` } // Synopsis implements the cli.Command interface func (c *PeersCommand) Synopsis() string { return "Interact with peers" } // Run implements the cli.Command interface func (c *PeersCommand) Run(args []string) int { return cli.RunResultHelp }