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.
30 lines
964 B
30 lines
964 B
using JetBrains.Annotations;
|
|
|
|
namespace Recyclarr.TrashLib.Settings;
|
|
|
|
public record TrashRepository : IRepositorySettings
|
|
{
|
|
public Uri CloneUrl { get; [UsedImplicitly] init; } = new("https://github.com/TRaSH-/Guides.git");
|
|
public string Branch { get; [UsedImplicitly] init; } = "master";
|
|
public string? Sha1 { get; [UsedImplicitly] init; }
|
|
public string? GitPath { get; [UsedImplicitly] init; }
|
|
}
|
|
|
|
public record LogJanitorSettings
|
|
{
|
|
public int MaxFiles { get; [UsedImplicitly] init; } = 20;
|
|
}
|
|
|
|
public record Repositories
|
|
{
|
|
public TrashRepository TrashGuide { get; [UsedImplicitly] init; } = new();
|
|
}
|
|
|
|
public record SettingsValues
|
|
{
|
|
public Repositories Repositories { get; [UsedImplicitly] init; } = new();
|
|
public bool EnableSslCertificateValidation { get; [UsedImplicitly] init; } = true;
|
|
public LogJanitorSettings LogJanitor { get; [UsedImplicitly] init; } = new();
|
|
public string? GitPath { get; [UsedImplicitly] init; }
|
|
}
|