From 6a0148e21418b0fc0dc2c8214f7ba6cb1a2bc369 Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Tue, 17 May 2016 10:39:23 -0700 Subject: [PATCH] Documentation: write-out=table for v3 commands --- Documentation/dev-guide/local_cluster.md | 2 +- Documentation/op-guide/maintenance.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/dev-guide/local_cluster.md b/Documentation/dev-guide/local_cluster.md index 1d82e2388..6d1b7610a 100644 --- a/Documentation/dev-guide/local_cluster.md +++ b/Documentation/dev-guide/local_cluster.md @@ -45,7 +45,7 @@ To interact with the started cluster by using etcdctl: # use API version 3 $ export ETCDCTL_API=3 -$ etcdctl --endpoints=localhost:12379 member list +$ etcdctl --write-out=table --endpoints=localhost:12379 member list +------------------+---------+--------+------------------------+------------------------+ | ID | STATUS | NAME | PEER ADDRS | CLIENT ADDRS | +------------------+---------+--------+------------------------+------------------------+ diff --git a/Documentation/op-guide/maintenance.md b/Documentation/op-guide/maintenance.md index b368d3799..11d934a8e 100644 --- a/Documentation/op-guide/maintenance.md +++ b/Documentation/op-guide/maintenance.md @@ -66,7 +66,7 @@ $ while [ 1 ]; do dd if=/dev/urandom bs=1024 count=1024 | etcdctl put key || b ... Error: rpc error: code = 8 desc = etcdserver: mvcc: database space exceeded # confirm quota space is exceeded -$ etcdctl endpoint status +$ etcdctl --write-out=table endpoint status +----------------+------------------+-----------+---------+-----------+-----------+------------+ | ENDPOINT | ID | VERSION | DB SIZE | IS LEADER | RAFT TERM | RAFT INDEX | +----------------+------------------+-----------+---------+-----------+-----------+------------+ @@ -105,7 +105,7 @@ A snapshot is taken with `etcdctl`: ```sh $ etcdctl snapshot save backup.db -$ etcdctl snapshot status backup.db +$ etcdctl --write-out=table snapshot status backup.db +----------+----------+------------+------------+ | HASH | REVISION | TOTAL KEYS | TOTAL SIZE | +----------+----------+------------+------------+