diff options
| author | Paul Buetow <paul@buetow.org> | 2025-07-08 00:21:37 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-07-08 00:21:37 +0300 |
| commit | 670d27258ee3a1abb0a3b8b933ffbff41338aca9 (patch) | |
| tree | 75c26231c6766c2d753a0cf8892c3115b75a07c1 /internal/showcase | |
| parent | def6195bfc4085fe805e966d9e1c4d40592747a1 (diff) | |
fix: only check for claude command when needed
- Skip claude command existence check when using cached summary
- Prevents unnecessary error when claude is not installed but cache exists
- Improves performance for cached showcase generation
🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat (limited to 'internal/showcase')
| -rw-r--r-- | internal/showcase/showcase.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/internal/showcase/showcase.go b/internal/showcase/showcase.go index 386a674..bd94b18 100644 --- a/internal/showcase/showcase.go +++ b/internal/showcase/showcase.go @@ -186,9 +186,11 @@ func (g *Generator) generateProjectSummary(repoName string, forceRegenerate bool } } - // Check if claude command exists - if _, err := exec.LookPath("claude"); err != nil { - return nil, fmt.Errorf("claude command not found. Please install Claude CLI") + // Check if claude command exists (only if we need to run it) + if !haveCachedSummary { + if _, err := exec.LookPath("claude"); err != nil { + return nil, fmt.Errorf("claude command not found. Please install Claude CLI") + } } // Change to repository directory |
