INNER CODE UNIT · Go

checkClaudeDep

umputun/ralphex · cmd/ralphex/main.go:874

func checkClaudeDep(cfg *config.Config) error {
	claudeCmd := cfg.ClaudeCommand
	if claudeCmd == "" {
		claudeCmd = "claude"
	}
	if _, err := exec.LookPath(claudeCmd); err != nil {
		return fmt.Errorf("%s not found in PATH; install Claude Code or set claude_command in config to a compatible CLI", claudeCmd)
	}
	return nil
}

// checkCodexDep checks that the codex command is available in PATH.
// used when executor=codex (--codex) so codex absence is reported up-front
// with a clean message rather than a cryptic exec error on the first task.
func checkCodexDep(cfg *config.Config) error {
	codexCmd := cfg.CodexCommand
	if codexCmd == "" {
		codexCmd = "codex"

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…