Skip to content

Commit

Permalink
simplify table view (kyma-project#2181)
Browse files Browse the repository at this point in the history
  • Loading branch information
halamix2 authored Jul 10, 2024
1 parent 85efe64 commit b3e9916
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions internal/communitymodules/render.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,12 @@ func renderTable(raw bool, modulesData [][]string, headers []string) {
func setTable(inTable [][]string) *tablewriter.Table {
table := tablewriter.NewWriter(os.Stdout)
table.AppendBulk(inTable)
table.SetRowLine(true)
table.SetRowLine(false)
table.SetHeaderLine(false)
table.SetColumnSeparator("")
table.SetAlignment(tablewriter.ALIGN_CENTER)
table.SetColumnAlignment([]int{tablewriter.ALIGN_CENTER, tablewriter.ALIGN_LEFT, tablewriter.ALIGN_LEFT, tablewriter.ALIGN_LEFT})
table.SetHeaderAlignment(tablewriter.ALIGN_LEFT)
table.SetColumnAlignment([]int{tablewriter.ALIGN_LEFT, tablewriter.ALIGN_LEFT, tablewriter.ALIGN_LEFT, tablewriter.ALIGN_LEFT})
table.SetBorder(false)
return table
}

0 comments on commit b3e9916

Please sign in to comment.