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, spa

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.exit_on_failure?Boolean

Error handler

Returns:

  • (Boolean)


114
115
116
# File 'lib/lutaml/xsd/cli.rb', line 114

def self.exit_on_failure?
  true
end

Instance Method Details

#spa(package_path) ⇒ Object



104
105
106
# File 'lib/lutaml/xsd/cli.rb', line 104

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

#versionObject



109
110
111
# File 'lib/lutaml/xsd/cli.rb', line 109

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