Example #1
0
        public void Run()
        {
            PitConfig config = GetConfig();

            Log.Green($"Git user personal email: {config.GitUser.PersonalEmail}");
            Log.Green($"Git user work email: {config.GitUser.WorkEmail}");
        }
Example #2
0
        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));
        }