ctlv3: right-align the table output
This commit is contained in:
parent
a674116f07
commit
ce9f73a34c
@ -31,6 +31,7 @@ func (tp *tablePrinter) MemberList(r v3.MemberListResponse) {
|
|||||||
for _, row := range rows {
|
for _, row := range rows {
|
||||||
table.Append(row)
|
table.Append(row)
|
||||||
}
|
}
|
||||||
|
table.SetAlignment(tablewriter.ALIGN_RIGHT)
|
||||||
table.Render()
|
table.Render()
|
||||||
}
|
}
|
||||||
func (tp *tablePrinter) EndpointStatus(r []epStatus) {
|
func (tp *tablePrinter) EndpointStatus(r []epStatus) {
|
||||||
@ -40,6 +41,7 @@ func (tp *tablePrinter) EndpointStatus(r []epStatus) {
|
|||||||
for _, row := range rows {
|
for _, row := range rows {
|
||||||
table.Append(row)
|
table.Append(row)
|
||||||
}
|
}
|
||||||
|
table.SetAlignment(tablewriter.ALIGN_RIGHT)
|
||||||
table.Render()
|
table.Render()
|
||||||
}
|
}
|
||||||
func (tp *tablePrinter) DBStatus(r dbstatus) {
|
func (tp *tablePrinter) DBStatus(r dbstatus) {
|
||||||
@ -49,5 +51,6 @@ func (tp *tablePrinter) DBStatus(r dbstatus) {
|
|||||||
for _, row := range rows {
|
for _, row := range rows {
|
||||||
table.Append(row)
|
table.Append(row)
|
||||||
}
|
}
|
||||||
|
table.SetAlignment(tablewriter.ALIGN_RIGHT)
|
||||||
table.Render()
|
table.Render()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user