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/cmd/showcase.go | |
| 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/cmd/showcase.go')
| -rw-r--r-- | internal/cmd/showcase.go | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/internal/cmd/showcase.go b/internal/cmd/showcase.go index e184700..802cf10 100644 --- a/internal/cmd/showcase.go +++ b/internal/cmd/showcase.go @@ -13,14 +13,15 @@ var ( outputPath string outputFormat string excludePattern string + showcaseAITool string ) var showcaseCmd = &cobra.Command{ Use: "showcase", Short: "Generate AI-powered project showcase", - Long: `Generate a comprehensive showcase of all your projects using Claude AI. + Long: `Generate a comprehensive showcase of all your projects using AI. This feature creates a formatted document with project summaries, statistics, -and code snippets.`, +and code snippets. By default uses Claude, but can also use aichat.`, Example: ` # Generate showcase with cached summaries gitsyncer showcase @@ -34,11 +35,15 @@ and code snippets.`, gitsyncer showcase --format markdown # Exclude certain repositories - gitsyncer showcase --exclude "test-.*"`, + gitsyncer showcase --exclude "test-.*" + + # Use aichat instead of claude for AI summaries + gitsyncer showcase --ai-tool aichat`, Run: func(cmd *cobra.Command, args []string) { flags := buildFlags() flags.Showcase = true flags.Force = forceRegenerate + flags.AITool = showcaseAITool fmt.Println("Running showcase generation for all repositories...") exitCode := cli.HandleShowcaseOnly(cfg, flags) @@ -54,4 +59,5 @@ func init() { showcaseCmd.Flags().StringVarP(&outputPath, "output", "o", "", "custom output path (default: ~/git/foo.zone-content/gemtext/about/showcase.gmi.tpl)") showcaseCmd.Flags().StringVar(&outputFormat, "format", "gemtext", "output format: gemtext, markdown, html") showcaseCmd.Flags().StringVar(&excludePattern, "exclude", "", "exclude repos matching pattern") + showcaseCmd.Flags().StringVar(&showcaseAITool, "ai-tool", "claude", "AI tool to use for project summaries (claude or aichat)") }
\ No newline at end of file |
