mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-07 01:08:08 +08:00
20 lines
379 B
Go
20 lines
379 B
Go
package main
|
|
|
|
import (
|
|
cmds "github.com/jbenet/go-ipfs/commands"
|
|
"github.com/jbenet/go-ipfs/core/commands"
|
|
)
|
|
|
|
var Root = &cmds.Command{
|
|
Options: commands.Root.Options,
|
|
Help: commands.Root.Help,
|
|
Subcommands: map[string]*cmds.Command{
|
|
"test": &cmds.Command{
|
|
Run: func(req cmds.Request, res cmds.Response) {
|
|
v := "hello, world"
|
|
res.SetValue(v)
|
|
},
|
|
},
|
|
},
|
|
}
|