Class: Lutaml::Xsd::Commands::NamespaceCommand::PrefixesCommand

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

Overview

Prefixes command implementation

Instance Attribute Summary

Attributes inherited from BaseCommand

#options

Instance Method Summary collapse

Constructor Details

#initialize(package_file, options) ⇒ PrefixesCommand

Returns a new instance of PrefixesCommand.



449
450
451
452
# File 'lib/lutaml/xsd/commands/namespace_command.rb', line 449

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

Instance Method Details

#runObject



454
455
456
457
458
459
# File 'lib/lutaml/xsd/commands/namespace_command.rb', line 454

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

  display_prefixes(repository)
end