wabbajack/Wabbajack.App.Wpf/VerbRegistration.cs

15 lines
410 B
C#
Raw Permalink Normal View History

2022-10-16 12:17:30 +00:00
using Microsoft.Extensions.DependencyInjection;
2022-10-14 22:46:38 +00:00
using Wabbajack.Verbs;
using Wabbajack.CLI.Builder;
2022-10-16 12:17:30 +00:00
namespace Wabbajack;
2022-10-14 22:46:38 +00:00
2022-10-16 12:17:30 +00:00
public static class CommandLineBuilderExtensions
{
public static void AddCLIVerbs(this IServiceCollection services)
{
CommandLineBuilder.RegisterCommand<NexusLogin>(NexusLogin.Definition, c => ((NexusLogin)c).Run);
services.AddSingleton<NexusLogin>();
}
2022-10-14 22:46:38 +00:00
}