Class: Lutaml::Xsd::Commands::PackageCommand::InfoCommand

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

Overview

Info command implementation

Instance Attribute Summary

Attributes inherited from BaseCommand

#options

Instance Method Summary collapse

Constructor Details

#initialize(package_file, options) ⇒ InfoCommand

Returns a new instance of InfoCommand.



633
634
635
636
# File 'lib/lutaml/xsd/commands/package_command.rb', line 633

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

Instance Method Details

#runObject



638
639
640
641
# File 'lib/lutaml/xsd/commands/package_command.rb', line 638

def run
  validate_file_exists
  display_info
end