public void Run() { PitConfig config = GetConfig(); Log.Green($"Git user personal email: {config.GitUser.PersonalEmail}"); Log.Green($"Git user work email: {config.GitUser.WorkEmail}"); }
public PitConfig GetConfig() { string homePath = HomePath; string configPath = Path.Combine(homePath, ".pitconfig"); IniReader reader = new IniReader(); var dictionary = reader.Read(configPath); return(PitConfig.FromDictionary(dictionary)); }