INNER CODE UNIT · Go
openGitService
umputun/ralphex · cmd/ralphex/main.go:865
func openGitService(colors *progress.Colors, vcsCmd string) (*git.Service, error) {
svc, err := git.NewService(".", colors.Info(), vcsCmd)
if err != nil {
return nil, fmt.Errorf("new git service: %w", err)
}
return svc, nil
}
// checkClaudeDep checks that the claude command is available in PATH.
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