Skip to content

Commit

Permalink
add supported format to printer.Print
Browse files Browse the repository at this point in the history
  • Loading branch information
kenju committed Oct 2, 2019
1 parent 75270cc commit 2b82f5e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions printer/printer.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@ type ReportPrinter struct {
// Print the report using the given format
// If format is "csv" detailed listing is printer in csv format.
// Otherwise the summary of results is printed.
//
// Supported Format:
//
// summary
// csv
// json
// pretty
// html
// influx-summary
// influx-details
func (rp *ReportPrinter) Print(format string) error {
if format == "" {
format = "summary"
Expand Down

0 comments on commit 2b82f5e

Please sign in to comment.