Skip to content

Commit

Permalink
Make summary the default printer format
Browse files Browse the repository at this point in the history
  • Loading branch information
bojand committed Apr 22, 2019
1 parent f519a03 commit 984d3aa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions printer/printer.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ type ReportPrinter struct {
// If format is "csv" detailed listing is printer in csv format.
// Otherwise the summary of results is printed.
func (rp *ReportPrinter) Print(format string) error {
if format == "" {
format = "summary"
}

switch format {
case "summary", "csv":
outputTmpl := defaultTmpl
Expand Down

0 comments on commit 984d3aa

Please sign in to comment.