chore: export auth cli command

This commit is contained in:
frrist 2021-03-23 16:25:49 -07:00
parent 89c45fe7ef
commit 14a809d291
2 changed files with 7 additions and 7 deletions

View File

@ -13,16 +13,16 @@ import (
"github.com/filecoin-project/lotus/node/repo" "github.com/filecoin-project/lotus/node/repo"
) )
var authCmd = &cli.Command{ var AuthCmd = &cli.Command{
Name: "auth", Name: "auth",
Usage: "Manage RPC permissions", Usage: "Manage RPC permissions",
Subcommands: []*cli.Command{ Subcommands: []*cli.Command{
authCreateAdminToken, AuthCreateAdminToken,
authApiInfoToken, AuthApiInfoToken,
}, },
} }
var authCreateAdminToken = &cli.Command{ var AuthCreateAdminToken = &cli.Command{
Name: "create-token", Name: "create-token",
Usage: "Create token", Usage: "Create token",
Flags: []cli.Flag{ Flags: []cli.Flag{
@ -70,7 +70,7 @@ var authCreateAdminToken = &cli.Command{
}, },
} }
var authApiInfoToken = &cli.Command{ var AuthApiInfoToken = &cli.Command{
Name: "api-info", Name: "api-info",
Usage: "Get token with API info required to connect to this node", Usage: "Get token with API info required to connect to this node",
Flags: []cli.Flag{ Flags: []cli.Flag{

View File

@ -57,7 +57,7 @@ var GetWorkerAPI = cliutil.GetWorkerAPI
var CommonCommands = []*cli.Command{ var CommonCommands = []*cli.Command{
NetCmd, NetCmd,
authCmd, AuthCmd,
LogCmd, LogCmd,
waitApiCmd, waitApiCmd,
fetchParamCmd, fetchParamCmd,
@ -71,7 +71,7 @@ var Commands = []*cli.Command{
WithCategory("basic", clientCmd), WithCategory("basic", clientCmd),
WithCategory("basic", multisigCmd), WithCategory("basic", multisigCmd),
WithCategory("basic", paychCmd), WithCategory("basic", paychCmd),
WithCategory("developer", authCmd), WithCategory("developer", AuthCmd),
WithCategory("developer", mpoolCmd), WithCategory("developer", mpoolCmd),
WithCategory("developer", StateCmd), WithCategory("developer", StateCmd),
WithCategory("developer", ChainCmd), WithCategory("developer", ChainCmd),