Class: Openra::CLI
- Inherits:
-
Object
- Object
- Openra::CLI
- Defined in:
- lib/openra/cli.rb,
lib/openra/cli/formatters.rb,
lib/openra/cli/command_registry.rb,
lib/openra/cli/commands/version.rb,
lib/openra/cli/commands/replay_data.rb,
lib/openra/cli/commands/replay_metadata.rb
Defined Under Namespace
Modules: Commands, Formatters Classes: CommandRegistry
Constant Summary collapse
- FORMATTERS =
{ 'json' => Formatters::JSON.new, 'pretty-json' => Formatters::PrettyJSON.new, 'yaml' => Formatters::YAML.new, }.freeze
Instance Method Summary collapse
Instance Method Details
#call(*args, **kwargs, &block) ⇒ Object
16 17 18 |
# File 'lib/openra/cli.rb', line 16 def call(*args, **kwargs, &block) Dry::CLI.new(CommandRegistry).call(*args, **kwargs, &block) end |