Documentation
¶
Index ¶
- func DisplayAuthorInfo(targetAuthor string)
- func DisplayHistory(opts HistoryOptions)
- func DisplayStats(targetRepo string)
- func Execute()
- type AuthorStats
- type CommitSummary
- type CommitTrend
- type DefaultRepoCache
- type DefaultStatsCalculator
- type FileResult
- type HistoryOptions
- type HourStats
- type LanguageStats
- type RepoActivity
- type RepoCache
- type StatsCalculator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisplayAuthorInfo ¶ added in v1.6.3
func DisplayAuthorInfo(targetAuthor string)
DisplayAuthorInfo shows detailed information about the specified author or the configured author
func DisplayHistory ¶ added in v1.6.3
func DisplayHistory(opts HistoryOptions)
DisplayHistory is the main entry point for the history command
func DisplayStats ¶
func DisplayStats(targetRepo string)
DisplayStats - Displays stats for all active repositories or a specific repository
Types ¶
type AuthorStats ¶ added in v1.6.3
type CommitSummary ¶ added in v1.6.3
type CommitTrend ¶ added in v1.5.4
type CommitTrend struct {
// contains filtered or unexported fields
}
type DefaultRepoCache ¶ added in v1.5.9
type DefaultRepoCache struct {
// contains filtered or unexported fields
}
DefaultRepoCache implements RepoCache
func (*DefaultRepoCache) GetRepos ¶ added in v1.5.9
func (rc *DefaultRepoCache) GetRepos() map[string]scan.RepoMetadata
type DefaultStatsCalculator ¶ added in v1.5.9
type DefaultStatsCalculator struct{}
DefaultStatsCalculator implements StatsCalculator
func (*DefaultStatsCalculator) CalculateCommitTrend ¶ added in v1.5.9
func (c *DefaultStatsCalculator) CalculateCommitTrend(current int, previous int) CommitTrend
func (*DefaultStatsCalculator) CalculateTableWidth ¶ added in v1.5.9
func (c *DefaultStatsCalculator) CalculateTableWidth() int
func (*DefaultStatsCalculator) ProcessLanguageStats ¶ added in v1.5.9
func (c *DefaultStatsCalculator) ProcessLanguageStats(cache map[string]scan.RepoMetadata) map[string]int
type FileResult ¶ added in v1.6.3
FileResult represents a file and its content
type HistoryOptions ¶ added in v1.6.3
type LanguageStats ¶ added in v1.5.4
type RepoActivity ¶ added in v1.6.3
type RepoCache ¶ added in v1.5.9
type RepoCache interface {
GetRepos() map[string]scan.RepoMetadata
}
RepoCache represents the interface for accessing repository data
type StatsCalculator ¶ added in v1.5.9
type StatsCalculator interface {
CalculateCommitTrend(current, previous int) CommitTrend
ProcessLanguageStats(cache map[string]scan.RepoMetadata) map[string]int
CalculateTableWidth() int
}
StatsCalculator handles the calculation logic for repository statistics
Click to show internal directories.
Click to hide internal directories.