Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatLanguagesWithPercentages ¶ added in v0.4.0
func FormatLanguagesWithPercentages(languages []LanguageStats) string
FormatLanguagesWithPercentages formats languages with their percentages
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator handles showcase generation for repositories
func (*Generator) GenerateShowcase ¶
GenerateShowcase generates a showcase for repositories If repoFilter is provided, only those repositories are processed If repoFilter is empty/nil, all repositories in work directory are processed
type LanguageStats ¶ added in v0.4.0
LanguageStats holds statistics for a programming language
type LegacyRepoMetadata ¶ added in v0.4.0
type LegacyRepoMetadata struct {
Languages []string
CommitCount int
LinesOfCode int
FirstCommitDate string
LastCommitDate string
License string
AvgCommitAge float64
}
LegacyRepoMetadata for backwards compatibility with old cache files
type ProjectSummary ¶
type ProjectSummary struct {
Name string
Summary string
CodebergURL string
GitHubURL string
Metadata *RepoMetadata
Images []string // Relative paths to images in showcase directory
CodeSnippet string // Code snippet to show when no images
CodeLanguage string // Language and file info for the snippet
AIAssisted bool // Whether AI was detected in the project
VibeCoded bool // Whether the project was vibe-coded
}
ProjectSummary holds the summary information for a project
type RepoMetadata ¶
type RepoMetadata struct {
Languages []LanguageStats // Programming languages with usage statistics
Documentation []LanguageStats // Documentation/text files with usage statistics
CommitCount int
LinesOfCode int // Lines of code (excluding documentation)
LinesOfDocs int // Lines of documentation
FirstCommitDate string
LastCommitDate string
License string
AvgCommitAge float64 // Average age of last 42 commits in days
LatestTag string // Latest version tag (empty if no tags)
LatestTagDate string // Date of the latest tag (empty if no tags)
HasReleases bool // Whether the project has any releases/tags
}
RepoMetadata holds metadata about a repository
Click to show internal directories.
Click to hide internal directories.