Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesus-QC committed Nov 6, 2022
1 parent a37455f commit 55201fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SecretAdmin/Features/Console/Log.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public static int GetOption(string msg, int def)

public static bool GetConfirm(string msg, bool def)
{
AnsiConsole.MarkupLine($"[lightcyan3]{msg}[/] [dodgerblue1](y/n)[/] [springgreen3]({(def ? "True" : "False")})[/]:");
AnsiConsole.MarkupLine($"[lightcyan3]{msg}[/] [dodgerblue1](y/n)[/] [springgreen3]({(def ? "Yes" : "No")})[/]:");

while (true)
{
Expand All @@ -149,7 +149,7 @@ public static bool GetConfirm(string msg, bool def)
if (input is "exit")
Environment.Exit(-1);

switch (input.Trim())
switch (input.Trim().ToLower())
{
case "yes" or "y":
return true;
Expand Down

0 comments on commit 55201fb

Please sign in to comment.