Class: Lutaml::Xsd::Commands::NamespaceCommand::ShowCommand

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

Overview

Show command implementation

Instance Attribute Summary

Attributes inherited from BaseCommand

#options

Instance Method Summary collapse

Constructor Details

#initialize(namespace_uri, package_file, options) ⇒ ShowCommand

Returns a new instance of ShowCommand.



251
252
253
254
255
# File 'lib/lutaml/xsd/commands/namespace_command.rb', line 251

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

Instance Method Details

#runObject



257
258
259
260
261
262
# File 'lib/lutaml/xsd/commands/namespace_command.rb', line 257

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

  show_namespace(repository)
end