Class: Lutaml::Xsd::Commands::TypeCommand::HierarchyCommand

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

Overview

Hierarchy command implementation

Instance Attribute Summary

Attributes inherited from BaseCommand

#options

Instance Method Summary collapse

Constructor Details

#initialize(qname, package_path, options) ⇒ HierarchyCommand

Returns a new instance of HierarchyCommand.



1197
1198
1199
1200
1201
# File 'lib/lutaml/xsd/commands/type_command.rb', line 1197

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

Instance Method Details

#runObject



1203
1204
1205
1206
1207
1208
# File 'lib/lutaml/xsd/commands/type_command.rb', line 1203

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

  display_hierarchy(repository)
end