diff options
Diffstat (limited to 'internal/cmd/showcase.go')
| -rw-r--r-- | internal/cmd/showcase.go | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/internal/cmd/showcase.go b/internal/cmd/showcase.go index 0433ad3..741b4c8 100644 --- a/internal/cmd/showcase.go +++ b/internal/cmd/showcase.go @@ -10,9 +10,6 @@ import ( var ( forceRegenerate bool - outputPath string - outputFormat string - excludePattern string showcaseAITool string showcaseRepo string ) @@ -29,17 +26,11 @@ and code snippets. By default uses opencode (via ollama launch with glm-5.1:clou # Force regeneration of all summaries gitsyncer showcase --force - # Custom output path - gitsyncer showcase --output ~/my-showcase.md - - # Different output format - gitsyncer showcase --format markdown - - # Exclude certain repositories - gitsyncer showcase --exclude "test-.*" - # Use a specific AI tool - gitsyncer showcase --ai-tool opencode`, + gitsyncer showcase --ai-tool opencode + + # Generate showcase for one repository + gitsyncer showcase --repo gitsyncer`, Run: func(cmd *cobra.Command, args []string) { flags := buildFlags() flags.Showcase = true @@ -49,7 +40,11 @@ and code snippets. By default uses opencode (via ollama launch with glm-5.1:clou flags.SyncRepo = showcaseRepo } - fmt.Println("Running showcase generation for all repositories...") + if flags.SyncRepo != "" { + fmt.Printf("Running showcase generation for repository: %s...\n", flags.SyncRepo) + } else { + fmt.Println("Running showcase generation for all repositories...") + } exitCode := cli.HandleShowcaseOnly(cfg, flags) os.Exit(exitCode) }, @@ -60,9 +55,6 @@ func init() { // Showcase flags showcaseCmd.Flags().BoolVarP(&forceRegenerate, "force", "f", false, "force regeneration of cached summaries") - showcaseCmd.Flags().StringVarP(&outputPath, "output", "o", "", "custom output eath (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", "opencode", "AI tool for summaries: opencode, hexai, claude, amp, or claude-code (default tries opencode→hexai→claude→amp)") showcaseCmd.Flags().StringVar(&showcaseRepo, "repo", "", "only generate showcase for a single repository") } |
