Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

Commit

Permalink
keep original format when not using bubbletea
Browse files Browse the repository at this point in the history
Signed-off-by: zychen5186 <brianchen5197@gmail.com>
  • Loading branch information
zychen5186 committed Apr 23, 2024
1 parent e60c880 commit d633ea3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/printer/printer.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ func (p Printer) JSONToTable(w io.Writer, jsonRows []byte, columns []Column) err
if r := printer.Render(headers, rows, positions, true); r == -1 {
return fmt.Errorf("failed to render table")
}
if w == os.Stdout {
fmt.Printf("%d rows\n", len(rows))
}
return nil
}

Expand Down

0 comments on commit d633ea3

Please sign in to comment.