Console output alignment is important.
This commit is contained in:
parent
5b2557b3f4
commit
b5e0c9bfe0
|
@ -27,7 +27,8 @@ namespace CodexNetDeployer
|
||||||
public CodexNodeStartResult? Start(int i)
|
public CodexNodeStartResult? Start(int i)
|
||||||
{
|
{
|
||||||
var name = GetCodexContainerName(i);
|
var name = GetCodexContainerName(i);
|
||||||
Console.Write($" - {i} ({name}) \t= ");
|
Console.Write($" - {i} ({name})");
|
||||||
|
Console.CursorLeft = 30;
|
||||||
|
|
||||||
ICodexNode? codexNode = null;
|
ICodexNode? codexNode = null;
|
||||||
try
|
try
|
||||||
|
|
|
@ -32,9 +32,12 @@ namespace CodexNetDeployer
|
||||||
|
|
||||||
Log("Using plugins:" + Environment.NewLine);
|
Log("Using plugins:" + Environment.NewLine);
|
||||||
var metadata = ep.GetPluginMetadata();
|
var metadata = ep.GetPluginMetadata();
|
||||||
|
var longestKey = metadata.Keys.Max(k => k.Length);
|
||||||
foreach (var entry in metadata)
|
foreach (var entry in metadata)
|
||||||
{
|
{
|
||||||
Log($"{entry.Key} = {entry.Value}");
|
Console.Write(entry.Key);
|
||||||
|
Console.CursorLeft = longestKey + 5;
|
||||||
|
Console.WriteLine($"= {entry.Value}");
|
||||||
}
|
}
|
||||||
Log("");
|
Log("");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue