Class: Openra::CLI::Commands::ReplayData

Inherits:
Dry::CLI::Command
  • Object
show all
Defined in:
lib/openra/cli/commands/replay_data.rb

Instance Method Summary collapse

Instance Method Details

#call(replay:, **options) ⇒ Object



12
13
14
15
# File 'lib/openra/cli/commands/replay_data.rb', line 12

def call(replay:, **options)
  data = Openra::Commands::Replays::ExtractData.new.call(replay)
  puts FORMATTERS.fetch(options[:format]).call(data)
end