Class: Lutaml::Xsd::Commands::InitCommand

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

Overview

Initialize package with interactive dependency resolution

Instance Attribute Summary collapse

Attributes inherited from BaseCommand

#options

Instance Method Summary collapse

Constructor Details

#initialize(entry_points, options) ⇒ InitCommand

Returns a new instance of InitCommand.



13
14
15
16
# File 'lib/lutaml/xsd/commands/init_command.rb', line 13

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

Instance Attribute Details

#entry_pointsObject (readonly)

Returns the value of attribute entry_points.



11
12
13
# File 'lib/lutaml/xsd/commands/init_command.rb', line 11

def entry_points
  @entry_points
end

Instance Method Details

#runObject



18
19
20
21
# File 'lib/lutaml/xsd/commands/init_command.rb', line 18

def run
  validate_entry_points
  run_interactive_builder
end