Skip to content
This repository has been archived by the owner on May 1, 2023. It is now read-only.

Commit

Permalink
Change output table format
Browse files Browse the repository at this point in the history
  • Loading branch information
harryzcy committed Mar 28, 2021
1 parent f44648d commit 5be3db2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/output/output.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ import (
func Table(apps []macapp.Application) {
table := tablewriter.NewWriter(os.Stdout)
table.SetHeader([]string{"Name", "Current Architectures", "Arm Support"})
table.SetHeaderAlignment(tablewriter.ALIGN_LEFT)
table.SetCenterSeparator("")
table.SetColumnSeparator("")
table.SetBorder(false)

for _, app := range apps {
table.Append([]string{app.Name, app.Architectures.String(), app.ArmSupport.String()})
Expand Down

0 comments on commit 5be3db2

Please sign in to comment.