Class: Suma::Cli::Validate

Inherits:
Thor
  • Object
show all
Defined in:
lib/suma/cli/validate.rb

Overview

Main validate command that groups the validation subcommands

Instance Method Summary collapse

Instance Method Details

#ascii(express_file_path) ⇒ Object



25
26
27
28
29
30
31
# File 'lib/suma/cli/validate.rb', line 25

def ascii(express_file_path)
  require_relative "validate_ascii"

  validator = Cli::ValidateAscii.new
  validator.options = options
  validator.validate_ascii(express_file_path)
end


11
12
13
14
15
16
17
# File 'lib/suma/cli/validate.rb', line 11

def links(*args)
  require_relative "validate_links"

  # Forward the command to ValidateLinks
  links = Cli::ValidateLinks.new
  links.extract_and_validate(*args)
end