Class: Openra::CLI::Commands::ReplayMetadata

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

Instance Method Summary collapse

Instance Method Details

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



14
15
16
17
# File 'lib/openra/cli/commands/replay_metadata.rb', line 14

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