Skip to content

Commit

Permalink
Simplify table code
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptronicek committed Oct 29, 2023
1 parent 6d60492 commit 173e401
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 1 addition & 3 deletions components/local-app/cmd/organization-list.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,8 @@ var listOrganizationCommand = &cobra.Command{
table := tablewriter.NewWriter(os.Stdout)
table.SetHeader([]string{"Name", "Id"})
table.SetBorders(tablewriter.Border{Left: true, Top: false, Right: true, Bottom: false})
table.SetCenterSeparator("")
table.SetRowSeparator("")
table.SetBorder(false)
table.SetColumnSeparator("")
table.SetAutoWrapText(true)
table.SetHeaderAlignment(tablewriter.ALIGN_LEFT)
table.SetHeaderLine(false)

Expand Down
5 changes: 1 addition & 4 deletions components/local-app/cmd/workspaces-list.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,8 @@ var listWorkspaceCommand = &cobra.Command{

table := tablewriter.NewWriter(os.Stdout)
table.SetHeader([]string{"Repo", "Branch", "Workspace ID", "Status"})
table.SetBorders(tablewriter.Border{Left: true, Top: false, Right: true, Bottom: false})
table.SetCenterSeparator("")
table.SetRowSeparator("")
table.SetBorder(false)
table.SetColumnSeparator("")
table.SetAutoWrapText(true)
table.SetHeaderAlignment(tablewriter.ALIGN_LEFT)
table.SetHeaderLine(false)

Expand Down

0 comments on commit 173e401

Please sign in to comment.