chore: export auth cli command
This commit is contained in:
parent
89c45fe7ef
commit
14a809d291
10
cli/auth.go
10
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{
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user