We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ecf539 commit 709674fCopy full SHA for 709674f
1 file changed
src/EtcdTerminal.App/Program.cs
@@ -9,22 +9,25 @@
9
const string ShuttingDown = "[yellow]Shutting down...[/]";
10
const string PressAnyKeyRestart = "\n[grey]Press any key to restart...[/]";
11
12
+DIContainer.Current
13
+ .RegisterAll()
14
+ .Verify();
15
+
16
Console.OutputEncoding = System.Text.Encoding.UTF8;
17
Console.Write(SetBgCommand);
18
19
Console.CancelKeyPress += (_, args) =>
20
{
21
args.Cancel = true;
22
23
Console.Write(ResetBgCommand);
24
Console.ResetColor();
25
Console.WriteLine();
26
AnsiConsole.MarkupLine(ShuttingDown);
27
28
Environment.Exit(0);
29
};
30
-DIContainer.Current.RegisterAll()
- .Verify();
-
31
while (true)
32
33
try
@@ -38,6 +41,7 @@
38
41
return;
39
42
40
43
var mainScreen = scope.Resolver.Resolve<MainScreen>();
44
45
await mainScreen.ShowAsync(config);
46
}
47
catch (Exception ex)
0 commit comments