wabbajack/Wabbajack.App.Wpf/VerbRegistration.cs
2022-10-16 14:17:30 +02:00

15 lines
410 B
C#

using Microsoft.Extensions.DependencyInjection;
using Wabbajack.Verbs;
using Wabbajack.CLI.Builder;
namespace Wabbajack;
public static class CommandLineBuilderExtensions
{
public static void AddCLIVerbs(this IServiceCollection services)
{
CommandLineBuilder.RegisterCommand<NexusLogin>(NexusLogin.Definition, c => ((NexusLogin)c).Run);
services.AddSingleton<NexusLogin>();
}
}