Class: Ace::Docs::CLI::Commands::Analyze

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

Overview

ace-support-cli Command class for the analyze command

This command handles document analysis with LLM integration.

Constant Summary collapse

EXIT_SUCCESS =

Exit codes

0
EXIT_ERROR =
1
EXIT_NO_CHANGES =
2
EXIT_ANALYSIS_ERROR =
3

Instance Method Summary collapse

Instance Method Details

#call(file:, **options) ⇒ Object



69
70
71
72
73
74
75
76
77
# File 'lib/ace/docs/cli/commands/analyze.rb', line 69

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

  execute_analyze(file, options)
end