From ce9f73a34c5c20ee0cecd09975c54e51e17bdf82 Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Tue, 24 Jan 2017 10:27:05 -0800 Subject: [PATCH] ctlv3: right-align the table output --- etcdctl/ctlv3/command/printer_table.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/etcdctl/ctlv3/command/printer_table.go b/etcdctl/ctlv3/command/printer_table.go index 5bcf8763d..fb85c5846 100644 --- a/etcdctl/ctlv3/command/printer_table.go +++ b/etcdctl/ctlv3/command/printer_table.go @@ -31,6 +31,7 @@ func (tp *tablePrinter) MemberList(r v3.MemberListResponse) { for _, row := range rows { table.Append(row) } + table.SetAlignment(tablewriter.ALIGN_RIGHT) table.Render() } func (tp *tablePrinter) EndpointStatus(r []epStatus) { @@ -40,6 +41,7 @@ func (tp *tablePrinter) EndpointStatus(r []epStatus) { for _, row := range rows { table.Append(row) } + table.SetAlignment(tablewriter.ALIGN_RIGHT) table.Render() } func (tp *tablePrinter) DBStatus(r dbstatus) { @@ -49,5 +51,6 @@ func (tp *tablePrinter) DBStatus(r dbstatus) { for _, row := range rows { table.Append(row) } + table.SetAlignment(tablewriter.ALIGN_RIGHT) table.Render() }