Merge pull request #17887 from Homebrew/contributions-show-only-csv-in-csv-mode
dev-cmd/contributions: Show only the CSV output for `--csv`
This commit is contained in:
commit
12d0d7b9c5
@ -86,6 +86,8 @@ module Homebrew
|
|||||||
contributions <<
|
contributions <<
|
||||||
"#{Utils.pluralize("time", grand_totals[username].values.sum, include_count: true)} (total)"
|
"#{Utils.pluralize("time", grand_totals[username].values.sum, include_count: true)} (total)"
|
||||||
|
|
||||||
|
next if args.csv?
|
||||||
|
|
||||||
puts [
|
puts [
|
||||||
"#{username} contributed",
|
"#{username} contributed",
|
||||||
*contributions.to_sentence,
|
*contributions.to_sentence,
|
||||||
@ -93,10 +95,7 @@ module Homebrew
|
|||||||
].join(" ")
|
].join(" ")
|
||||||
end
|
end
|
||||||
|
|
||||||
return unless args.csv?
|
puts generate_csv(grand_totals) if args.csv?
|
||||||
|
|
||||||
puts
|
|
||||||
puts generate_csv(grand_totals)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user