Class: Lutaml::Xsd::Commands::TypeCommand::DependentsCommand

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

Overview

Dependents command implementation

Instance Attribute Summary

Attributes inherited from BaseCommand

#options

Instance Method Summary collapse

Constructor Details

#initialize(qname, package_path, options) ⇒ DependentsCommand

Returns a new instance of DependentsCommand.



1105
1106
1107
1108
1109
# File 'lib/lutaml/xsd/commands/type_command.rb', line 1105

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

Instance Method Details

#runObject



1111
1112
1113
1114
1115
1116
# File 'lib/lutaml/xsd/commands/type_command.rb', line 1111

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

  display_dependents(repository)
end