You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
686 B
29 lines
686 B
using Castle.Core.Internal;
|
|
using Spectre.Console;
|
|
|
|
namespace Recyclarr.Cli.Pipelines.Tags.PipelinePhases;
|
|
|
|
public class TagPreviewPhase(IAnsiConsole console)
|
|
{
|
|
public void Execute(IReadOnlyList<string> tagsToCreate)
|
|
{
|
|
if (tagsToCreate.IsNullOrEmpty())
|
|
{
|
|
console.WriteLine();
|
|
console.MarkupLine("[green]No tags to create[/]");
|
|
console.WriteLine();
|
|
return;
|
|
}
|
|
|
|
var table = new Table {Border = TableBorder.Simple};
|
|
table.AddColumn("[olive]Tags To Create[/]");
|
|
|
|
foreach (var tag in tagsToCreate)
|
|
{
|
|
table.AddRow(tag);
|
|
}
|
|
|
|
console.Write(table);
|
|
}
|
|
}
|