etcdctl: update to meet go vet

This commit is contained in:
Brian Waldon
2014-10-22 17:51:40 -07:00
parent 69842b344d
commit 1539d5c49c
12 changed files with 24 additions and 26 deletions

View File

@ -18,8 +18,8 @@ func NewExecWatchCommand() cli.Command {
Name: "exec-watch",
Usage: "watch a key for changes and exec an executable",
Flags: []cli.Flag{
cli.IntFlag{"after-index", 0, "watch after the given index"},
cli.BoolFlag{"recursive", "watch all values for key and child keys"},
cli.IntFlag{Name: "after-index", Value: 0, Usage: "watch after the given index"},
cli.BoolFlag{Name: "recursive", Usage: "watch all values for key and child keys"},
},
Action: func(c *cli.Context) {
handleKey(c, execWatchCommandFunc)
@ -92,8 +92,6 @@ func execWatchCommandFunc(c *cli.Context, client *etcd.Client) (*etcd.Response,
go io.Copy(os.Stderr, stderr)
cmd.Wait()
}
return nil, nil
}
func environResponse(resp *etcd.Response, env []string) []string {