drop unused handler method

Signed-off-by: Meredith Lancaster <malancas@github.com>
This commit is contained in:
Meredith Lancaster 2025-01-15 14:13:16 -07:00
parent 2ffce8ae9f
commit 555c9b65f5

View file

@ -4,7 +4,6 @@ import (
"fmt"
"strings"
"github.com/cli/cli/v2/internal/tableprinter"
"github.com/cli/cli/v2/pkg/iostreams"
"github.com/cli/cli/v2/utils"
)
@ -84,23 +83,3 @@ func (h *Handler) PrintBulletPoints(rows [][]string) (int, error) {
}
return fmt.Fprintln(h.IO.ErrOut, info)
}
func (h *Handler) PrintTable(headers []string, rows [][]string) error {
if !h.IO.IsStdoutTTY() {
return nil
}
t := tableprinter.New(h.IO, tableprinter.WithHeader(headers...))
for _, row := range rows {
for _, field := range row {
t.AddField(field, tableprinter.WithTruncate(nil))
}
t.EndRow()
}
if err := t.Render(); err != nil {
return fmt.Errorf("failed to print output: %v", err)
}
return nil
}