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)); } }
public static BamSettings GetSettings() { BamSettings settings = BamSettings.Load(); if (!settings.IsValid(msg => OutLine(msg, ConsoleColor.Red))) { Exit(1); } return(settings); }