From b2acb12c8eb6980c677ef71edb7183c84181cc90 Mon Sep 17 00:00:00 2001 From: Vadim Date: Sun, 25 Jan 2015 14:10:08 +0100 Subject: [PATCH] Update README.md Example output of `$ etcdctl exec-watch` command was wrong and showing non-existing ETCD_VALUE, ETCD_KEY, etc keys. Submitting a PR, which updates those examples with correct keys (ETCD_WATCH_VALUE, ETCD_WATCH_KEY, etc). --- etcdctl/README.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/etcdctl/README.md b/etcdctl/README.md index 27775cf85..b46178dc9 100644 --- a/etcdctl/README.md +++ b/etcdctl/README.md @@ -196,26 +196,26 @@ Continuously watch a key and exec a program: ``` $ etcdctl exec-watch /foo/bar -- sh -c "env | grep ETCD" ETCD_WATCH_ACTION=set -ETCD_VALUE=My configuration stuff -ETCD_MODIFIED_INDEX=1999 -ETCD_KEY=/foo/bar +ETCD_WATCH_VALUE=My configuration stuff +ETCD_WATCH_MODIFIED_INDEX=1999 +ETCD_WATCH_KEY=/foo/bar ETCD_WATCH_ACTION=set -ETCD_VALUE=My new configuration stuff -ETCD_MODIFIED_INDEX=2000 -ETCD_KEY=/foo/bar +ETCD_WATCH_VALUE=My new configuration stuff +ETCD_WATCH_MODIFIED_INDEX=2000 +ETCD_WATCH_KEY=/foo/bar ``` Continuously and recursively watch a key and exec a program: ``` $ etcdctl exec-watch --recursive /foo -- sh -c "env | grep ETCD" ETCD_WATCH_ACTION=set -ETCD_VALUE=My configuration stuff -ETCD_MODIFIED_INDEX=1999 -ETCD_KEY=/foo/bar +ETCD_WATCH_VALUE=My configuration stuff +ETCD_WATCH_MODIFIED_INDEX=1999 +ETCD_WATCH_KEY=/foo/bar ETCD_WATCH_ACTION=set -ETCD_VALUE=My new configuration stuff -ETCD_MODIFIED_INDEX=2000 -ETCD_KEY=/foo/barbar +ETCD_WATCH_VALUE=My new configuration stuff +ETCD_WATCH_MODIFIED_INDEX=2000 +ETCD_WATCH_KEY=/foo/barbar ``` ## Return Codes