Fix list validation

This commit is contained in:
Timothy Baldridge 2022-04-02 09:36:54 -06:00
parent 93a4f57e8f
commit 6ac8210570
2 changed files with 3 additions and 6 deletions

View File

@ -71,7 +71,6 @@ public class ValidateLists : IVerb
public Command MakeCommand()
{
var command = new Command("validate-lists");
command.Add(new Option<List[]>(new[] {"-l", "-lists"}, "Lists of lists to validate") {IsRequired = true});
command.Add(new Option<AbsolutePath>(new[] {"-r", "--reports"}, "Location to store validation report outputs"));
command.Add(new Option<AbsolutePath>(new[] {"--other-archives"},
@ -83,7 +82,7 @@ public class ValidateLists : IVerb
return command;
}
public async Task<int> Run(List[] lists, AbsolutePath reports, AbsolutePath otherArchives)
public async Task<int> Run(AbsolutePath reports, AbsolutePath otherArchives)
{
reports.CreateDirectory();
var token = CancellationToken.None;
@ -102,9 +101,7 @@ public class ValidateLists : IVerb
archive => DownloadAndValidate(archive, forcedRemovals, token));
var stopWatch = Stopwatch.StartNew();
var listData = await lists.SelectAsync(async l => await _gitHubClient.GetData(l))
.SelectMany(l => l.Lists)
.ToArray();
var listData = await _wjClient.LoadLists();
var validatedLists = await listData.PMapAll(async modList =>
{

View File

@ -12,7 +12,7 @@ public class LinksObject
[JsonPropertyName("download")] public string Download { get; set; } = string.Empty;
[JsonPropertyName("machineURL")] internal string MachineURL { get; set; } = string.Empty;
[JsonPropertyName("machineURL")] public string MachineURL { get; set; } = string.Empty;
[JsonPropertyName("discordURL")] public string DiscordURL { get; set; } = string.Empty;
}