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

Commit

Permalink
Add total_count
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesrocket committed Aug 5, 2021
1 parent c3e625c commit 31b4bc2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/frightcrawler.cr
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ module Frightcrawler
bulk = false
game_format = ""
csv_file = ""
total_count = 0
parser = OptionParser.new do |parser|
parser.on("-g GAME_FORMAT", "Set game format") { |_game_format| game_format = _game_format }
parser.on("-f CSV_FILE", "Path to CSV file") { |_csv_file| csv_file = _csv_file }
Expand Down Expand Up @@ -95,9 +96,11 @@ module Frightcrawler
else
exit(1)
end
total_count += 1
STDOUT.puts " ▓▒░░░ #{legalities} #{foil_layout} #{rarity_symbol} #{card_name}#{set_name}#{set_code}"
Log.info { "#{game_format}: #{legalities} #{card_name}#{set_name}" }
end
end
puts "\n DONE"
puts " Total processed: #{total_count}"
end

0 comments on commit 31b4bc2

Please sign in to comment.