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.



630
631
632
633
# File 'lib/lutaml/xsd/commands/package_command.rb', line 630

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

Instance Method Details

#runObject



635
636
637
638
# File 'lib/lutaml/xsd/commands/package_command.rb', line 635

def run
  validate_file_exists
  display_info
end