- Add Go-specific analysis prompt in .grokkit/prompts/go.md - Expand cmd/analyze.go to discover files, detect language, load prompts, build context, generate report via Grok, and handle output with preview/confirmation - Integrate analyzeCmd into root command - Introduce internal/linter/language.go for primary language detection - Add internal/prompts/analyze.go for loading analysis prompts from project or global locations
4 lines
153 B
Go
4 lines
153 B
Go
package linter
|
|
|
|
// DetectPrimaryLanguage returns the most common language or falls back to "go"
|
|
func DetectPrimaryLanguage(files []string) string { ... } |