提交 ccfb10dd 作者: Matt Bell 提交者: Juan Batiz-Benet

cmd/ipfs: Added root command for CLI-specific subcommands (init, daemon, etc.)

上级 c89826c1
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)
},
},
},
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论