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"
)
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{

View File

@ -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),