etcdctl/ctlv2: use latest Action interface

This commit is contained in:
Gyu-Ho Lee
2016-06-20 15:54:35 -07:00
parent 0ae9d444f9
commit bdca594495
19 changed files with 73 additions and 37 deletions

View File

@ -32,8 +32,9 @@ func NewUpdateCommand() cli.Command {
Flags: []cli.Flag{
cli.IntFlag{Name: "ttl", Value: 0, Usage: "key time-to-live"},
},
Action: func(c *cli.Context) {
Action: func(c *cli.Context) error {
updateCommandFunc(c, mustNewKeyAPI(c))
return nil
},
}
}