drop unused handler method
Signed-off-by: Meredith Lancaster <malancas@github.com>
This commit is contained in:
parent
2ffce8ae9f
commit
555c9b65f5
1 changed files with 0 additions and 21 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue