mirror of
https://github.com/g3rv4/FakeRelay.git
synced 2025-02-16 15:29:14 +01:00
Order instances by host
This commit is contained in:
parent
509fbc964f
commit
2db1ac7e43
@ -17,7 +17,7 @@ public class ListInstancesCommand : ConfigEnabledAsyncCommand<EmptyCommandSettin
|
|||||||
table.AddColumn("Instance");
|
table.AddColumn("Instance");
|
||||||
table.AddColumn("Key");
|
table.AddColumn("Key");
|
||||||
|
|
||||||
foreach (var group in hostToKeys)
|
foreach (var group in hostToKeys.OrderBy(g => g.Key))
|
||||||
{
|
{
|
||||||
var host = group.Key;
|
var host = group.Key;
|
||||||
foreach (var key in group)
|
foreach (var key in group)
|
||||||
@ -25,7 +25,7 @@ public class ListInstancesCommand : ConfigEnabledAsyncCommand<EmptyCommandSettin
|
|||||||
table.AddRow($"[green]{host}[/]", $"[red]{key}[/]");
|
table.AddRow($"[green]{host}[/]", $"[red]{key}[/]");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
AnsiConsole.Write(table);
|
AnsiConsole.Write(table);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user