mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdctl: print number of deleted keys
This commit is contained in:
parent
584d90cd5d
commit
e8877ab180
@ -55,10 +55,8 @@ type simplePrinter struct {
|
|||||||
isHex bool
|
isHex bool
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *simplePrinter) Del(v3.DeleteResponse) {
|
func (s *simplePrinter) Del(resp v3.DeleteResponse) {
|
||||||
// TODO: add number of key removed into the response of delete.
|
fmt.Println(resp.Deleted)
|
||||||
// TODO: print out the number of removed keys.
|
|
||||||
fmt.Println(0)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *simplePrinter) Get(resp v3.GetResponse) {
|
func (s *simplePrinter) Get(resp v3.GetResponse) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user