Class: Lutaml::Xsd::Commands::TypeCommand::BatchFindCommand

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

Overview

Batch find command implementation

Instance Attribute Summary

Attributes inherited from BaseCommand

#options

Instance Method Summary collapse

Constructor Details

#initialize(package_file, options) ⇒ BatchFindCommand

Returns a new instance of BatchFindCommand.



1335
1336
1337
1338
# File 'lib/lutaml/xsd/commands/type_command.rb', line 1335

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

Instance Method Details

#runObject



1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
# File 'lib/lutaml/xsd/commands/type_command.rb', line 1340

def run
  unless @package_file
    error "Package file path is required for batch mode"
    exit 1
  end

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

  execute_batch_query
end