Fix pluralization & alignment of output

This commit is contained in:
Stone_Red
2024-05-01 14:58:57 +02:00
parent 553fd97e2a
commit 3c5d165ebb
+2 -2
View File
@@ -79,7 +79,7 @@ internal static class Program
if (!activeHosts.IsEmpty) if (!activeHosts.IsEmpty)
{ {
Console.WriteLine(Environment.NewLine + "Active hosts:"); Console.WriteLine(Environment.NewLine + $"Active host{(activeHosts.Count == 1 ? "s" : "")}:");
List<string[]>? activeHostsTable = [.. activeHosts]; List<string[]>? activeHostsTable = [.. activeHosts];
@@ -87,7 +87,7 @@ internal static class Program
activeHostsTable.ToArray().To2D().PrintTable(TableStyle.List); activeHostsTable.ToArray().To2D().PrintTable(TableStyle.List);
ConsoleExt.WriteLine($"{Environment.NewLine}Found {activeHosts.Count} active hosts", ConsoleColor.Green); ConsoleExt.WriteLine($"{Environment.NewLine}Found {activeHosts.Count} active host{(activeHosts.Count == 1 ? "s" : "")}", ConsoleColor.Green);
} }
else else
{ {