Преглед изворни кода

etcdctl: print number of deleted keys

Gyu-Ho Lee пре 10 година
родитељ
комит
e8877ab180
1 измењених фајлова са 2 додато и 4 уклоњено
  1. 2 4
      etcdctl/ctlv3/command/printer.go

+ 2 - 4
etcdctl/ctlv3/command/printer.go

@@ -55,10 +55,8 @@ type simplePrinter struct {
 	isHex bool
 	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) {
 func (s *simplePrinter) Get(resp v3.GetResponse) {