feat: background gray messages

This commit is contained in:
tresabhi committed 2025-03-06 21:54:20 -06:00
1 parent 2c059cdc59
commit 56ca3e5ed4
2 files changed
+10 -3

No files matched your search

+3 -3
View File
@@ -35,7 +35,7 @@ namespace BlitzKit.CLI.Models
if (response.StatusCode == HttpStatusCode.NotFound) if (response.StatusCode == HttpStatusCode.NotFound)
{ {
Console.WriteLine( PrettyLog.Background(
$"🟢 (+{change.Content.Count.ToString("N0", Program.Culture)}B) {blobPath}" $"🟢 (+{change.Content.Count.ToString("N0", Program.Culture)}B) {blobPath}"
); );
changes.Add(change); changes.Add(change);
@@ -70,14 +70,14 @@ namespace BlitzKit.CLI.Models
if (isDifferent) if (isDifferent)
{ {
Console.WriteLine( PrettyLog.Background(
$"🟡 ({(deltaSize > 0 ? "+" : "")}{deltaSize.ToString("N0", Program.Culture)}B) {blobPath}" $"🟡 ({(deltaSize > 0 ? "+" : "")}{deltaSize.ToString("N0", Program.Culture)}B) {blobPath}"
); );
changes.Add(change); changes.Add(change);
} }
else else
{ {
Console.WriteLine($"🔵 {blobPath}"); PrettyLog.Background($"🔵 {blobPath}");
return; return;
} }
} }
+7
View File
@@ -27,5 +27,12 @@ namespace BlitzKit.CLI.Utils
Console.WriteLine(message); Console.WriteLine(message);
Console.ResetColor(); Console.ResetColor();
} }
public static void Background(string message)
{
Console.ForegroundColor = ConsoleColor.DarkGray;
Console.WriteLine(message);
Console.ResetColor();
}
} }
} }