private static int DisplayRangedHistory(RangedHistory opts) { using (var repo = new SourceControlAnalysisBuilder() .WithPath(opts.Path) .WithRange(opts.StartDate, opts.EndDate) .WithIgnorePatterns(opts.IgnorePatterns) .WithBranch(opts.Branch) .WithWeekends(opts.WeekendDays) .WithWorkingDaysPerWeek(opts.WorkingDaysPerWeek) .WithWorkingWeekHours(opts.WorkingHoursPerWeek) .WithIgnoreComments(opts.IgnoreComments) .Build()) { var dashboard = new CodeStatsDashboard(); var authors = repo.List_Authors(); var stats = repo.Build_Individual_Developer_Stats(authors); var teamStats = repo.Build_Team_Stats(); dashboard.RenderDashboard(stats, teamStats, repo.ReportingRange); return(1); } }
private static int DisplayFullHistory(FullHistory opts) { using (var repo = new SourceControlAnalysisBuilder() .WithPath(opts.Path) .WithEntireHistory() .WithIgnorePatterns(opts.IgnorePatterns) .WithBranch(opts.Branch) .WithWeekends(opts.WeekendDays) .WithWorkingDaysPerWeek(opts.WorkingDaysPerWeek) .WithWorkingWeekHours(opts.WorkingHoursPerWeek) .WithIgnoreComments(opts.IgnoreComments) .Build()) { // todo : make configurable //var aliasMap = new List<Alias> //{ // new Alias{ // Name = "T-rav", // Emails = new List<string>{ // "*****@*****.**", // "*****@*****.**", // "*****@*****.**"} // } //}; // todo : wip, first attempt to make aliases confiurable //var aliasRepository = new AliasRepository(opts.AliasFile); //var aliasMap = aliasRepository.Load(); var dashboard = new CodeStatsDashboard(); var authors = repo.List_Authors(); var stats = repo.Build_Individual_Developer_Stats(authors); var teamStats = repo.Build_Team_Stats(); dashboard.RenderDashboard(stats, teamStats, repo.ReportingRange); } return(1); }