Class: Lutaml::Xsd::Commands::XmlCommand

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

Overview

XML operations commands (MECE category) Handles all XML validation and processing operations

Instance Method Summary collapse

Instance Method Details

#validate(*args) ⇒ Object



53
54
55
56
57
58
59
60
61
62
63
# File 'lib/lutaml/xsd/commands/xml_command.rb', line 53

def validate(*args)
  if args.length < 2
    error "Usage: lutaml-xsd xml validate FILES SCHEMA [options]"
    exit 1
  end

  schema = args.pop
  files = args
  require_relative "validate_command"
  ValidateCommand.new(files, schema, options).run
end