From 6827f2dce3314c6eb7b172938dd3de0da6584d82 Mon Sep 17 00:00:00 2001 From: frrist Date: Tue, 23 Mar 2021 16:15:02 -0700 Subject: [PATCH] chore: export Net commands --- cli/cmd.go | 4 ++-- cli/net.go | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/cli/cmd.go b/cli/cmd.go index 19006702f..e05107933 100644 --- a/cli/cmd.go +++ b/cli/cmd.go @@ -56,7 +56,7 @@ var GetStorageMinerAPI = cliutil.GetStorageMinerAPI var GetWorkerAPI = cliutil.GetWorkerAPI var CommonCommands = []*cli.Command{ - netCmd, + NetCmd, authCmd, logCmd, waitApiCmd, @@ -78,7 +78,7 @@ var Commands = []*cli.Command{ WithCategory("developer", logCmd), WithCategory("developer", waitApiCmd), WithCategory("developer", fetchParamCmd), - WithCategory("network", netCmd), + WithCategory("network", NetCmd), WithCategory("network", syncCmd), pprofCmd, VersionCmd, diff --git a/cli/net.go b/cli/net.go index de9dbd767..fdd0a13d6 100644 --- a/cli/net.go +++ b/cli/net.go @@ -23,16 +23,16 @@ import ( "github.com/filecoin-project/lotus/lib/addrutil" ) -var netCmd = &cli.Command{ +var NetCmd = &cli.Command{ Name: "net", Usage: "Manage P2P Network", Subcommands: []*cli.Command{ NetPeers, - netConnect, + NetConnect, NetListen, NetId, - netFindPeer, - netScores, + NetFindPeer, + NetScores, NetReachability, NetBandwidthCmd, NetBlockCmd, @@ -112,7 +112,7 @@ var NetPeers = &cli.Command{ }, } -var netScores = &cli.Command{ +var NetScores = &cli.Command{ Name: "scores", Usage: "Print peers' pubsub scores", Flags: []cli.Flag{ @@ -175,7 +175,7 @@ var NetListen = &cli.Command{ }, } -var netConnect = &cli.Command{ +var NetConnect = &cli.Command{ Name: "connect", Usage: "Connect to a peer", ArgsUsage: "[peerMultiaddr|minerActorAddress]", @@ -264,7 +264,7 @@ var NetId = &cli.Command{ }, } -var netFindPeer = &cli.Command{ +var NetFindPeer = &cli.Command{ Name: "findpeer", Usage: "Find the addresses of a given peerID", ArgsUsage: "[peerId]",