mirror of
https://github.com/g3rv4/FakeRelay.git
synced 2024-11-21 23:03:07 +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("Key");
|
||||
|
||||
foreach (var group in hostToKeys)
|
||||
foreach (var group in hostToKeys.OrderBy(g => g.Key))
|
||||
{
|
||||
var host = group.Key;
|
||||
foreach (var key in group)
|
||||
@ -25,7 +25,7 @@ public class ListInstancesCommand : ConfigEnabledAsyncCommand<EmptyCommandSettin
|
||||
table.AddRow($"[green]{host}[/]", $"[red]{key}[/]");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
AnsiConsole.Write(table);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user