DrillSergeant/Program.cs

29 lines
925 B
C#
Raw Normal View History

2022-07-29 17:18:24 -05:00
using LibGit2Sharp;
2022-07-29 18:51:22 -05:00
static class Program
2022-07-29 17:18:24 -05:00
{
internal static void Main(string[] args)
{
2022-07-31 17:39:20 -05:00
try
2022-07-29 17:18:24 -05:00
{
2022-07-31 17:39:20 -05:00
CommitDetail commits = new CommitDetail();
commits.GetAllCommitsByName();
// SortedList<string, int> results = commits.OrderCommitsByCount();
//StdOutDataService outDataService = new StdOutDataService();
ExcelDataService excelDataService = new ExcelDataService();
//DataAccess dataAccess = new DataAccess(outDataService);
DataAccess dataAccess = new DataAccess(excelDataService);
dataAccess.WriteData(commits.CommitDetails);
2022-07-29 17:18:24 -05:00
}
2022-07-31 17:39:20 -05:00
catch (System.IO.DirectoryNotFoundException e)
{
Console.WriteLine($"Are you in a git repository? {e}");
Environment.Exit(1);
}
catch (System.Exception e)
2022-07-29 17:18:24 -05:00
{
2022-07-31 17:39:20 -05:00
Console.WriteLine(e);
2022-07-29 17:18:24 -05:00
}
}
}