using Microsoft.Extensions.DependencyInjection; namespace Wabbajack.CLI; using Wabbajack.CLI.Verbs; using Wabbajack.CLI.Builder; public static class CommandLineBuilderExtensions{ public static void AddCLIVerbs(this IServiceCollection services) { CommandLineBuilder.RegisterCommand(Compile.Definition, c => ((Compile)c).Run); services.AddSingleton(); CommandLineBuilder.RegisterCommand(Decrypt.Definition, c => ((Decrypt)c).Run); services.AddSingleton(); CommandLineBuilder.RegisterCommand(DownloadAll.Definition, c => ((DownloadAll)c).Run); services.AddSingleton(); CommandLineBuilder.RegisterCommand(DownloadUrl.Definition, c => ((DownloadUrl)c).Run); services.AddSingleton(); CommandLineBuilder.RegisterCommand(DumpZipInfo.Definition, c => ((DumpZipInfo)c).Run); services.AddSingleton(); CommandLineBuilder.RegisterCommand(Encrypt.Definition, c => ((Encrypt)c).Run); services.AddSingleton(); CommandLineBuilder.RegisterCommand(Extract.Definition, c => ((Extract)c).Run); services.AddSingleton(); CommandLineBuilder.RegisterCommand(ForceHeal.Definition, c => ((ForceHeal)c).Run); services.AddSingleton(); CommandLineBuilder.RegisterCommand(HashFile.Definition, c => ((HashFile)c).Run); services.AddSingleton(); CommandLineBuilder.RegisterCommand(HashUrlString.Definition, c => ((HashUrlString)c).Run); services.AddSingleton(); CommandLineBuilder.RegisterCommand(Install.Definition, c => ((Install)c).Run); services.AddSingleton(); CommandLineBuilder.RegisterCommand(InstallCompileInstallVerify.Definition, c => ((InstallCompileInstallVerify)c).Run); services.AddSingleton(); CommandLineBuilder.RegisterCommand(ListCreationClubContent.Definition, c => ((ListCreationClubContent)c).Run); services.AddSingleton(); CommandLineBuilder.RegisterCommand(ListGames.Definition, c => ((ListGames)c).Run); services.AddSingleton(); CommandLineBuilder.RegisterCommand(ListModlists.Definition, c => ((ListModlists)c).Run); services.AddSingleton(); CommandLineBuilder.RegisterCommand(MegaLogin.Definition, c => ((MegaLogin)c).Run); services.AddSingleton(); CommandLineBuilder.RegisterCommand(MirrorFile.Definition, c => ((MirrorFile)c).Run); services.AddSingleton(); CommandLineBuilder.RegisterCommand(ModlistReport.Definition, c => ((ModlistReport)c).Run); services.AddSingleton(); CommandLineBuilder.RegisterCommand(SetNexusApiKey.Definition, c => ((SetNexusApiKey)c).Run); services.AddSingleton(); CommandLineBuilder.RegisterCommand(SteamDownloadFile.Definition, c => ((SteamDownloadFile)c).Run); services.AddSingleton(); CommandLineBuilder.RegisterCommand(SteamDumpAppInfo.Definition, c => ((SteamDumpAppInfo)c).Run); services.AddSingleton(); CommandLineBuilder.RegisterCommand(SteamLogin.Definition, c => ((SteamLogin)c).Run); services.AddSingleton(); CommandLineBuilder.RegisterCommand(UploadToNexus.Definition, c => ((UploadToNexus)c).Run); services.AddSingleton(); CommandLineBuilder.RegisterCommand(ValidateLists.Definition, c => ((ValidateLists)c).Run); services.AddSingleton(); CommandLineBuilder.RegisterCommand(VerifyModlistInstall.Definition, c => ((VerifyModlistInstall)c).Run); services.AddSingleton(); CommandLineBuilder.RegisterCommand(VFSIndex.Definition, c => ((VFSIndex)c).Run); services.AddSingleton(); } }