suppress att verify output when no tty
Signed-off-by: Brian DeHamer <bdehamer@github.com>
This commit is contained in:
parent
c57a045d2d
commit
677edbac77
1 changed files with 4 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue