public static void OpenSqlFileRetry(this SqlPreCommand command) { SafeConsole.WriteLineColor(ConsoleColor.Yellow, "There are changes!"); string file = command.OpenSqlFile(); if (!AvoidOpenOpenSqlFileRetry && SafeConsole.Ask("Open again?")) { Process.Start(file); } }