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.
33 lines
911 B
33 lines
911 B
using MoreLinq;
|
|
using Recyclarr.TrashLib.Config;
|
|
using Spectre.Console;
|
|
|
|
namespace Recyclarr.TrashLib.Services.QualitySize.Guide;
|
|
|
|
public class QualitySizeDataLister
|
|
{
|
|
private readonly IAnsiConsole _console;
|
|
private readonly IQualityGuideService _guide;
|
|
|
|
public QualitySizeDataLister(
|
|
IAnsiConsole console,
|
|
IQualityGuideService guide)
|
|
{
|
|
_console = console;
|
|
_guide = guide;
|
|
}
|
|
|
|
public void ListQualities(SupportedServices serviceType)
|
|
{
|
|
_console.WriteLine("\nList of Quality Definition types in the TRaSH Guides:\n");
|
|
|
|
_guide.GetQualitySizeData(serviceType)
|
|
.Select(x => x.Type)
|
|
.ForEach(x => _console.WriteLine($" - {x}"));
|
|
|
|
_console.WriteLine(
|
|
"\nThe above quality definition types can be used with the `quality_definition:` property in your " +
|
|
"recyclarr.yml file.");
|
|
}
|
|
}
|