mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-25 03:29:51 +01:00
feat: background gray messages
This commit is contained in:
1 parent
2c059cdc59
commit
56ca3e5ed4
2 files changed
+10
-3
No files matched your search
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user