From 5ca3c39da7854a753d8535465ec42bebfa3fcf8e Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 19 Jul 2025 16:45:29 +0300 Subject: feat: add aichat support for showcase project descriptions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- internal/cmd/showcase.go | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'internal/cmd') 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 -- cgit v1.2.3