Commit 3dcae0e0 authored by Brian Tiger Chow's avatar Brian Tiger Chow Committed by Juan Batiz-Benet
parent 852674b1
......@@ -10,6 +10,13 @@ import (
)
var pinCmd = &cmds.Command{
Subcommands: map[string]*cmds.Command{
"add": addPinCmd,
"rm": rmPinCmd,
},
}
var addPinCmd = &cmds.Command{
Options: []cmds.Option{
cmds.Option{[]string{"recursive", "r"}, cmds.Bool},
cmds.Option{[]string{"depth", "d"}, cmds.Uint},
......@@ -39,7 +46,7 @@ var pinCmd = &cmds.Command{
},
}
var unpinCmd = &cmds.Command{
var rmPinCmd = &cmds.Command{
Options: []cmds.Option{
cmds.Option{[]string{"recursive", "r"}, cmds.Bool},
},
......
......@@ -64,7 +64,6 @@ var rootSubcommands = map[string]*cmds.Command{
"log": logCmd,
"net-diag": diagCmd,
"pin": pinCmd,
"unpin": unpinCmd,
"version": versionCmd,
"config": configCmd,
"bootstrap": bootstrapCmd,
......@@ -90,12 +89,14 @@ var rootSubcommands = map[string]*cmds.Command{
},
Type: &TestOutput{},
},
// TODO rm
"boop": &cmds.Command{
Run: func(res cmds.Response, req cmds.Request) {
v := strings.NewReader("hello, world")
res.SetOutput(v)
},
},
// TODO rm
"warp": &cmds.Command{
Options: []cmds.Option{
cmds.Option{[]string{"power", "p"}, cmds.Float},
......@@ -115,6 +116,7 @@ var rootSubcommands = map[string]*cmds.Command{
}
},
},
// TODO rm
"args": &cmds.Command{
Run: func(res cmds.Response, req cmds.Request) {
res.SetOutput(req.Arguments())
......
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