Class: Lutaml::Xsd::Commands::NamespaceCommand::TreeCommand

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

Overview

Tree command implementation

Instance Attribute Summary

Attributes inherited from BaseCommand

#options

Instance Method Summary collapse

Constructor Details

#initialize(package_file, options) ⇒ TreeCommand

Returns a new instance of TreeCommand.



375
376
377
378
# File 'lib/lutaml/xsd/commands/namespace_command.rb', line 375

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

Instance Method Details

#runObject



380
381
382
383
384
385
# File 'lib/lutaml/xsd/commands/namespace_command.rb', line 380

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

  display_namespace_tree(repository)
end