feat: Adds console commands (#1714)
### Summary * Adds console command support. * Adds `save`, `restart`, and `shutdown` commands.
This commit is contained in:
parent
855f8c67ae
commit
e638fb7893
5 changed files with 233 additions and 13 deletions
|
|
@ -117,11 +117,9 @@ public static class AdhocPersistence
|
|||
Console.WriteLine($"***** Bad deserialize of {file.FullName} *****");
|
||||
Console.WriteLine(error);
|
||||
|
||||
Console.WriteLine("Skip this file and continue? (y/n)");
|
||||
Console.Write("Skip this file and continue? (y/n): ");
|
||||
|
||||
var pressedKey = Console.ReadKey(true).Key;
|
||||
|
||||
if (pressedKey != ConsoleKey.Y)
|
||||
if (!ConsoleInputHandler.ReadLine().InsensitiveEquals("y"))
|
||||
{
|
||||
throw new Exception("Deserialization failed.");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue