Class: Lutaml::Xsd::Commands::TypeCommand::BatchFindCommand
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- Lutaml::Xsd::Commands::TypeCommand::BatchFindCommand
- Defined in:
- lib/lutaml/xsd/commands/type_command.rb
Overview
Batch find command implementation
Instance Attribute Summary
Attributes inherited from BaseCommand
Instance Method Summary collapse
-
#initialize(package_file, options) ⇒ BatchFindCommand
constructor
A new instance of BatchFindCommand.
- #run ⇒ Object
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, ) super() @package_file = package_file end |
Instance Method Details
#run ⇒ Object
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 |