mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdctl: print "del" instead of "delete" in txn interactive mode
This commit is contained in:
parent
2eb9353019
commit
bb0e144b43
@ -52,9 +52,9 @@ func txnCommandFunc(cmd *cobra.Command, args []string) {
|
||||
txn := mustClientFromCmd(cmd).Txn(context.Background())
|
||||
promptInteractive("compares:")
|
||||
txn.If(readCompares(reader)...)
|
||||
promptInteractive("success requests (get, put, delete):")
|
||||
promptInteractive("success requests (get, put, del):")
|
||||
txn.Then(readOps(reader)...)
|
||||
promptInteractive("failure requests (get, put, delete):")
|
||||
promptInteractive("failure requests (get, put, del):")
|
||||
txn.Else(readOps(reader)...)
|
||||
|
||||
resp, err := txn.Commit()
|
||||
|
Loading…
x
Reference in New Issue
Block a user