diff options
| author | Paul Buetow <paul@buetow.org> | 2025-07-19 16:45:29 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-07-19 16:45:29 +0300 |
| commit | 5ca3c39da7854a753d8535465ec42bebfa3fcf8e (patch) | |
| tree | f0ad03216a47e997eaa9833ca65140d5918eefdd /internal/cli | |
| parent | 2ca1d94d1c6785a40b722a581a842be6a8741cc6 (diff) | |
feat: add aichat support for showcase project descriptionsv0.8.1
- Add --ai-tool flag to showcase command (default: claude)
- Support aichat as alternative to claude for generating project summaries
- When using aichat, read README.md and pipe it as input
- Update documentation and examples
- Bump version to 0.8.1
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat (limited to 'internal/cli')
| -rw-r--r-- | internal/cli/showcase_handler.go | 5 | ||||
| -rw-r--r-- | internal/cli/showcase_only_handler.go | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/internal/cli/showcase_handler.go b/internal/cli/showcase_handler.go index a3dfd26..929ce95 100644 --- a/internal/cli/showcase_handler.go +++ b/internal/cli/showcase_handler.go @@ -24,6 +24,11 @@ func HandleShowcase(cfg *config.Config, flags *Flags) int { // Create showcase generator generator := showcase.New(cfg, flags.WorkDir) + // Set AI tool if specified + if flags.AITool != "" { + generator.SetAITool(flags.AITool) + } + // Generate showcase with optional filter if err := generator.GenerateShowcase(repoFilter, flags.Force); err != nil { log.Printf("ERROR: Failed to generate showcase: %v\n", err) diff --git a/internal/cli/showcase_only_handler.go b/internal/cli/showcase_only_handler.go index ff2a82a..f777729 100644 --- a/internal/cli/showcase_only_handler.go +++ b/internal/cli/showcase_only_handler.go @@ -45,6 +45,11 @@ func HandleShowcaseOnly(cfg *config.Config, flags *Flags) int { fmt.Println("\nGenerating showcase for all repositories...") generator := showcase.New(cfg, flags.WorkDir) + // Set AI tool if specified + if flags.AITool != "" { + generator.SetAITool(flags.AITool) + } + // Pass empty filter to process all repos if err := generator.GenerateShowcase(nil, flags.Force); err != nil { log.Printf("ERROR: Failed to generate showcase: %v\n", err) |
