Class: Lutaml::Xsd::Commands::TypeCommand::FindCommand

Inherits:
BaseCommand
  • Object
show all
Defined in:
lib/lutaml/xsd/commands/type_command.rb

Overview

Find command implementation

Instance Attribute Summary

Attributes inherited from BaseCommand

#options

Instance Method Summary collapse

Constructor Details

#initialize(qname, package_file, options) ⇒ FindCommand

Returns a new instance of FindCommand.



191
192
193
194
195
# File 'lib/lutaml/xsd/commands/type_command.rb', line 191

def initialize(qname, package_file, options)
  super(options)
  @qname = qname
  @package_file = package_file
end

Instance Method Details

#runObject



197
198
199
200
201
202
# File 'lib/lutaml/xsd/commands/type_command.rb', line 197

def run
  @repository = load_repository(@package_file)
  @repository = ensure_resolved(@repository)

  find_and_display_type(@repository)
end