|
|
@ -24,12 +24,12 @@ public class ConfigTemplateLister : IConfigLister
|
|
|
|
|
|
|
|
|
|
|
|
var sonarrRowItems = RenderTemplates(table, data, SupportedServices.Sonarr);
|
|
|
|
var sonarrRowItems = RenderTemplates(table, data, SupportedServices.Sonarr);
|
|
|
|
var radarrRowItems = RenderTemplates(table, data, SupportedServices.Radarr);
|
|
|
|
var radarrRowItems = RenderTemplates(table, data, SupportedServices.Radarr);
|
|
|
|
var items = radarrRowItems
|
|
|
|
var items = sonarrRowItems
|
|
|
|
.ZipLongest(sonarrRowItems, (l, r) => (l ?? empty, r ?? empty));
|
|
|
|
.ZipLongest(radarrRowItems, (s, r) => (s ?? empty, r ?? empty));
|
|
|
|
|
|
|
|
|
|
|
|
foreach (var (r, s) in items)
|
|
|
|
foreach (var (s, r) in items)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
table.AddRow(r, s);
|
|
|
|
table.AddRow(s, r);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
_console.Write(table);
|
|
|
|
_console.Write(table);
|
|
|
|