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"
|
"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{
|
||||||
|
@ -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),
|
||||||
|
Loading…
Reference in New Issue
Block a user