Commit ccfb10dd authored by Matt Bell's avatar Matt Bell Committed by Juan Batiz-Benet

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

parent 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 is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment