dev-cmd/contributions: Show only the CSV output for --csv
- This was noisy when using `--csv` as it would print the text output and then the CSV output.
This commit is contained in:
parent
807a934574
commit
c880dd4350
@ -86,6 +86,8 @@ module Homebrew
|
||||
contributions <<
|
||||
"#{Utils.pluralize("time", grand_totals[username].values.sum, include_count: true)} (total)"
|
||||
|
||||
next if args.csv?
|
||||
|
||||
puts [
|
||||
"#{username} contributed",
|
||||
*contributions.to_sentence,
|
||||
@ -93,10 +95,7 @@ module Homebrew
|
||||
].join(" ")
|
||||
end
|
||||
|
||||
return unless args.csv?
|
||||
|
||||
puts
|
||||
puts generate_csv(grand_totals)
|
||||
puts generate_csv(grand_totals) if args.csv?
|
||||
end
|
||||
|
||||
private
|
||||
|
Loading…
x
Reference in New Issue
Block a user