Updated worker to show upsert issue messages.
This commit is contained in:
@@ -30,6 +30,26 @@ public static class CliUi
|
||||
AnsiConsole.Write(panel);
|
||||
}
|
||||
|
||||
public static void PageErrors(string productId, string[] messages)
|
||||
{
|
||||
if (messages.Length == 0)
|
||||
return;
|
||||
|
||||
var grid = new Grid().AddColumn();
|
||||
|
||||
foreach (string message in messages )
|
||||
{
|
||||
grid.AddRow($"[red]{Escape(message)}[/]");
|
||||
}
|
||||
|
||||
var panel = new Panel(grid)
|
||||
.Header($"[bold]{productId}[/]")
|
||||
.Border(BoxBorder.Rounded)
|
||||
.Padding(1, 0, 1, 0);
|
||||
|
||||
AnsiConsole.Write(panel);
|
||||
}
|
||||
|
||||
public static void Warning(string message) =>
|
||||
AnsiConsole.MarkupLine($"[yellow]⚠ {Escape(message)}[/]");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user