suppress att verify output when no tty

Signed-off-by: Brian DeHamer <bdehamer@github.com>
This commit is contained in:
Brian DeHamer 2024-09-12 09:40:47 -07:00
parent c57a045d2d
commit 677edbac77
No known key found for this signature in database

View file

@ -62,6 +62,10 @@ func (h *Handler) VerbosePrintf(f string, v ...interface{}) (int, error) {
}
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 {