Class: Ace::Docs::CLI::Commands::Validate

Inherits:
Support::Cli::Command
  • Object
show all
Includes:
ScopeOptions, Support::Cli::Base
Defined in:
lib/ace/docs/cli/commands/validate.rb

Overview

ace-support-cli Command class for the validate command

This command handles document validation.

Constant Summary collapse

EXIT_SUCCESS =

Exit codes

0
EXIT_ERROR =
1

Instance Method Summary collapse

Instance Method Details

#call(pattern: nil, **options) ⇒ Object



66
67
68
69
70
71
72
73
74
# File 'lib/ace/docs/cli/commands/validate.rb', line 66

def call(pattern: nil, **options)
  # Handle --help/-h passed as pattern argument
  if pattern == "--help" || pattern == "-h"
    # ace-support-cli will handle help automatically, so we just ignore
    return EXIT_SUCCESS
  end

  execute_validate(pattern, options)
end