Console output alignment is important.

This commit is contained in:
benbierens 2023-09-21 08:49:09 +02:00
parent 5b2557b3f4
commit b5e0c9bfe0
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
2 changed files with 6 additions and 2 deletions

View File

@ -27,7 +27,8 @@ namespace CodexNetDeployer
public CodexNodeStartResult? Start(int i)
{
var name = GetCodexContainerName(i);
Console.Write($" - {i} ({name}) \t= ");
Console.Write($" - {i} ({name})");
Console.CursorLeft = 30;
ICodexNode? codexNode = null;
try

View File

@ -32,9 +32,12 @@ namespace CodexNetDeployer
Log("Using plugins:" + Environment.NewLine);
var metadata = ep.GetPluginMetadata();
var longestKey = metadata.Keys.Max(k => k.Length);
foreach (var entry in metadata)
{
Log($"{entry.Key} = {entry.Value}");
Console.Write(entry.Key);
Console.CursorLeft = longestKey + 5;
Console.WriteLine($"= {entry.Value}");
}
Log("");
}