mirror of
https://github.com/charmbracelet/gum
synced 2026-03-14 21:55:45 +01:00
This reverts commit 05614c8196.
This commit is contained in:
parent
2da952756f
commit
2846d19b70
1 changed files with 1 additions and 2 deletions
|
|
@ -13,7 +13,6 @@ import (
|
|||
"github.com/charmbracelet/gum/style"
|
||||
"github.com/charmbracelet/lipgloss"
|
||||
ltable "github.com/charmbracelet/lipgloss/table"
|
||||
"github.com/charmbracelet/x/term"
|
||||
"golang.org/x/text/encoding"
|
||||
"golang.org/x/text/encoding/unicode"
|
||||
"golang.org/x/text/transform"
|
||||
|
|
@ -110,7 +109,7 @@ func (o Options) Run() error {
|
|||
rows = append(rows, table.Row(data[row]))
|
||||
}
|
||||
|
||||
if o.Print || !term.IsTerminal(os.Stdout.Fd()) {
|
||||
if o.Print {
|
||||
table := ltable.New().
|
||||
Headers(columnNames...).
|
||||
Rows(data...).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue