root.go 379 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
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)
			},
		},
	},
}