Skip to content

Commit

Permalink
format: update upstream display in table to use new line separation
Browse files Browse the repository at this point in the history
  • Loading branch information
wpjunior committed Feb 11, 2025
1 parent a4aa7dc commit 0e311e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/plugin/rpaasv2/cmd/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ func writeBindsOnTableFormat(binds []clientTypes.Bind) string {
row := []string{bind.Name, bind.Host}

if hasUpstreams {
row = append(row, strings.Join(bind.Upstreams, ", "))
row = append(row, strings.Join(bind.Upstreams, "\n"))
}

rows = append(rows, row)
Expand All @@ -353,7 +353,7 @@ func writeBindsOnTableFormat(binds []clientTypes.Bind) string {
table.SetAutoFormatHeaders(false)
table.SetHeaderAlignment(tablewriter.ALIGN_LEFT)
table.SetAutoWrapText(true)
table.SetColumnAlignment([]int{tablewriter.ALIGN_LEFT, tablewriter.ALIGN_CENTER, tablewriter.ALIGN_CENTER, tablewriter.ALIGN_LEFT})
table.SetColumnAlignment([]int{tablewriter.ALIGN_LEFT, tablewriter.ALIGN_LEFT, tablewriter.ALIGN_LEFT})
table.AppendBulk(rows)
table.Render()

Expand Down

0 comments on commit 0e311e6

Please sign in to comment.