Skip to content

Commit

Permalink
chore: update table alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Oct 29, 2022
1 parent 7ec0dd2 commit 6cbe8a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ func (a *Action) renderOutput() error {
inputTable.SetHeader(inputColumns)
inputTable.SetBorders(tablewriter.Border{Left: true, Top: false, Right: true, Bottom: false})
inputTable.SetCenterSeparator(pipeSeparator)
inputTable.SetAlignment(tablewriter.ALIGN_CENTER)

keys := make([]string, 0, len(a.Inputs))
for k := range a.Inputs {
Expand Down Expand Up @@ -192,6 +193,7 @@ func (a *Action) renderOutput() error {
outputTable.SetHeader(outputColumns)
outputTable.SetBorders(tablewriter.Border{Left: true, Top: false, Right: true, Bottom: false})
outputTable.SetCenterSeparator(pipeSeparator)
outputTable.SetAlignment(tablewriter.ALIGN_CENTER)

keys := make([]string, 0, len(a.Outputs))
for k := range a.Outputs {
Expand Down

0 comments on commit 6cbe8a6

Please sign in to comment.