Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BuildCommand ¶
type BuildCommand struct {
Name string // e.g., "build", "test", "lint"
Command string // e.g., "go build ./..."
Source string // which file suggested it
}
BuildCommand is a detected build/test command.
type CodePattern ¶
CodePattern is a detected code pattern or convention.
type Detection ¶
type Detection struct {
File string
Components []TechComponent
Commands []BuildCommand
}
Detection holds what was detected from a single build file.
type Detector ¶
type Detector struct {
File string // filename to look for, e.g., "go.mod"
Detect func(repoPath string) *Detection
}
Detector checks for a specific build file and extracts info.
type RepoAnalysis ¶
type RepoAnalysis struct {
Name string
Language string
Description string
DirectoryTree []DirEntry
TechStack []TechComponent
BuildCommands []BuildCommand
Patterns []CodePattern
HasREADME bool
HasAGENTSMD bool
}
RepoAnalysis holds the results of analyzing a repository.
func Analyze ¶
func Analyze(repoPath string) (*RepoAnalysis, error)
Analyze scans a repository path and returns analysis results.
type TechComponent ¶
type TechComponent struct {
Name string // e.g., "Go", "Node.js", "Python"
Version string // e.g., "1.24", "18", "3.11"
Source string // file that detected it, e.g., "go.mod"
}
TechComponent represents a detected technology.
Click to show internal directories.
Click to hide internal directories.