diff --git a/cli/auth.go b/cli/auth.go index 2f41b38d1..86958ee43 100644 --- a/cli/auth.go +++ b/cli/auth.go @@ -13,16 +13,16 @@ import ( "github.com/filecoin-project/lotus/node/repo" ) -var authCmd = &cli.Command{ +var AuthCmd = &cli.Command{ Name: "auth", Usage: "Manage RPC permissions", Subcommands: []*cli.Command{ - authCreateAdminToken, - authApiInfoToken, + AuthCreateAdminToken, + AuthApiInfoToken, }, } -var authCreateAdminToken = &cli.Command{ +var AuthCreateAdminToken = &cli.Command{ Name: "create-token", Usage: "Create token", Flags: []cli.Flag{ @@ -70,7 +70,7 @@ var authCreateAdminToken = &cli.Command{ }, } -var authApiInfoToken = &cli.Command{ +var AuthApiInfoToken = &cli.Command{ Name: "api-info", Usage: "Get token with API info required to connect to this node", Flags: []cli.Flag{ diff --git a/cli/cmd.go b/cli/cmd.go index cf0b99c81..1aed6174c 100644 --- a/cli/cmd.go +++ b/cli/cmd.go @@ -57,7 +57,7 @@ var GetWorkerAPI = cliutil.GetWorkerAPI var CommonCommands = []*cli.Command{ NetCmd, - authCmd, + AuthCmd, LogCmd, waitApiCmd, fetchParamCmd, @@ -71,7 +71,7 @@ var Commands = []*cli.Command{ WithCategory("basic", clientCmd), WithCategory("basic", multisigCmd), WithCategory("basic", paychCmd), - WithCategory("developer", authCmd), + WithCategory("developer", AuthCmd), WithCategory("developer", mpoolCmd), WithCategory("developer", StateCmd), WithCategory("developer", ChainCmd),