예제 #1
0
        public void Config()
        {
            BamSettings settings = BamSettings.Load();

            if (!settings.IsValid(msgs => Message.PrintLine(msgs, ConsoleColor.Magenta)))
            {
                settings.Save(bak => Message.PrintLine("Backed up existing file: {0}", ConsoleColor.DarkYellow, bak));
            }
        }
예제 #2
0
        public static BamSettings GetSettings()
        {
            BamSettings settings = BamSettings.Load();

            if (!settings.IsValid(msg => OutLine(msg, ConsoleColor.Red)))
            {
                Exit(1);
            }

            return(settings);
        }