Class: Lutaml::Xsd::Commands::TypeCommand::DependenciesCommand

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

Overview

Dependencies command implementation

Instance Attribute Summary

Attributes inherited from BaseCommand

#options

Instance Method Summary collapse

Constructor Details

#initialize(qname, package_path, options) ⇒ DependenciesCommand

Returns a new instance of DependenciesCommand.



993
994
995
996
997
# File 'lib/lutaml/xsd/commands/type_command.rb', line 993

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

Instance Method Details

#runObject



999
1000
1001
1002
1003
1004
# File 'lib/lutaml/xsd/commands/type_command.rb', line 999

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

  display_dependencies(repository)
end