etcdctl: print number of deleted keys

release-3.0
Gyu-Ho Lee 2016-04-02 20:54:37 -07:00
parent 584d90cd5d
commit e8877ab180
1 changed files with 2 additions and 4 deletions

View File

@ -55,10 +55,8 @@ type simplePrinter struct {
isHex bool
}
func (s *simplePrinter) Del(v3.DeleteResponse) {
// TODO: add number of key removed into the response of delete.
// TODO: print out the number of removed keys.
fmt.Println(0)
func (s *simplePrinter) Del(resp v3.DeleteResponse) {
fmt.Println(resp.Deleted)
}
func (s *simplePrinter) Get(resp v3.GetResponse) {