Skip to content

Commit

Permalink
Remove go-pretty
Browse files Browse the repository at this point in the history
  • Loading branch information
lewissteele committed Dec 29, 2024
1 parent 92525fd commit a57e394
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ require (
github.com/c-bata/go-prompt v0.2.6
github.com/charmbracelet/huh v0.6.0
github.com/gosuri/uitable v0.0.4
github.com/jedib0t/go-pretty/v6 v6.6.0
github.com/spf13/cobra v1.8.1
gorm.io/driver/mysql v1.5.7
gorm.io/driver/postgres v1.5.9
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ github.com/jackc/pgx/v5 v5.5.5 h1:amBjrZVmksIdNjxGW/IiIMzxMKZFelXbUoPNb+8sjQw=
github.com/jackc/pgx/v5 v5.5.5/go.mod h1:ez9gk+OAat140fv9ErkZDYFWmXLfV+++K0uAOiwgm1A=
github.com/jackc/puddle/v2 v2.2.1 h1:RhxXJtFG022u4ibrCSMSiu5aOq1i77R3OHKNJj77OAk=
github.com/jackc/puddle/v2 v2.2.1/go.mod h1:vriiEXHvEE654aYKXXjOvZM39qJ0q+azkZFrfEOc3H4=
github.com/jedib0t/go-pretty/v6 v6.6.0 h1:wmZVuAcEkZRT+Aq1xXpE8IGat4vE5WXOMmBpbQqERXw=
github.com/jedib0t/go-pretty/v6 v6.6.0/go.mod h1:zbn98qrYlh95FIhwwsbIip0LYpwSG8SUOScs+v9/t0E=
github.com/jinzhu/inflection v1.0.0 h1:K317FqzuhWc8YvSVlFMCCUb36O/S9MCKRDI7QkRKD/E=
github.com/jinzhu/inflection v1.0.0/go.mod h1:h+uFLlag+Qp1Va5pdKtLDYj+kHp5pxUVkryuEj+Srlc=
github.com/jinzhu/now v1.1.5 h1:/o9tlHleP7gOFmsnYNz3RGnqzefHA47wQpKrrdTIwXQ=
Expand Down
3 changes: 1 addition & 2 deletions internal/table/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@ package table
import (
"fmt"
"github.com/gosuri/uitable"
"github.com/jedib0t/go-pretty/v6/table"
)

func Render(d []map[string]interface{}) {
t := uitable.New()
t.MaxColWidth = 80
t.Wrap = false

var headers table.Row
var headers []interface{}
for k, _ := range d[0] {
headers = append(headers, k)
}
Expand Down

0 comments on commit a57e394

Please sign in to comment.