mirror of
https://github.com/ipfs/kubo.git
synced 2025-10-18 04:03:01 +08:00
Show readonly commands in gateway readonly API
License: MIT Signed-off-by: rht <rhtbot@gmail.com>
This commit is contained in:
@ -109,6 +109,12 @@ var rootSubcommands = map[string]*cmds.Command{
|
||||
"version": VersionCmd,
|
||||
"bitswap": BitswapCmd,
|
||||
}
|
||||
|
||||
// RootRO is the readonly version of Root
|
||||
var RootRO = &cmds.Command{}
|
||||
|
||||
var CommandsDaemonROCmd = CommandsCmd(RootRO)
|
||||
|
||||
var rootROSubcommands = map[string]*cmds.Command{
|
||||
"block": &cmds.Command{
|
||||
Subcommands: map[string]*cmds.Command{
|
||||
@ -117,7 +123,7 @@ var rootROSubcommands = map[string]*cmds.Command{
|
||||
},
|
||||
},
|
||||
"cat": CatCmd,
|
||||
"commands": CommandsDaemonCmd,
|
||||
"commands": CommandsDaemonROCmd,
|
||||
"ls": LsCmd,
|
||||
"name": &cmds.Command{
|
||||
Subcommands: map[string]*cmds.Command{
|
||||
@ -136,8 +142,6 @@ var rootROSubcommands = map[string]*cmds.Command{
|
||||
//"resolve": ResolveCmd,
|
||||
}
|
||||
|
||||
var RootRO = &cmds.Command{}
|
||||
|
||||
func init() {
|
||||
*RootRO = *Root
|
||||
Root.Subcommands = rootSubcommands
|
||||
|
Reference in New Issue
Block a user