Class: Lutaml::Xsd::Cli

Inherits:
Thor
  • Object
show all
Defined in:
lib/lutaml/xsd/cli.rb

Overview

Main CLI class for lutaml-xsd command-line interface Provides MECE command structure: pkg, xml, build, doc

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.exit_on_failure?Boolean

Error handler

Returns:

  • (Boolean)


131
132
133
# File 'lib/lutaml/xsd/cli.rb', line 131

def self.exit_on_failure?
  true
end

Instance Method Details

#generate_spa(package_path) ⇒ Object



121
122
123
# File 'lib/lutaml/xsd/cli.rb', line 121

def generate_spa(package_path)
  Commands::GenerateSpaCommand.new(package_path, options).run
end

#versionObject



126
127
128
# File 'lib/lutaml/xsd/cli.rb', line 126

def version
  puts "lutaml-xsd version #{Lutaml::Xsd::VERSION}"
end