2020-02-08 18:03:41 +00:00
|
|
|
|
using CommandLine;
|
2020-01-31 22:38:56 +00:00
|
|
|
|
using Wabbajack.CLI.Verbs;
|
2020-05-27 12:05:55 +00:00
|
|
|
|
using Wabbajack.Common;
|
|
|
|
|
using Console = System.Console;
|
|
|
|
|
using System.Reactive.Linq;
|
|
|
|
|
using System;
|
2020-01-31 22:38:56 +00:00
|
|
|
|
|
|
|
|
|
namespace Wabbajack.CLI
|
|
|
|
|
{
|
2020-02-08 18:03:41 +00:00
|
|
|
|
public class Program
|
2020-01-31 22:38:56 +00:00
|
|
|
|
{
|
2020-02-08 18:03:41 +00:00
|
|
|
|
private static int Main(string[] args)
|
2020-01-31 22:38:56 +00:00
|
|
|
|
{
|
2020-05-27 12:05:55 +00:00
|
|
|
|
Utils.LogMessages.Subscribe(Console.WriteLine);
|
2020-02-08 18:03:41 +00:00
|
|
|
|
return Parser.Default.ParseArguments(args, OptionsDefinition.AllOptions)
|
2020-01-31 22:38:56 +00:00
|
|
|
|
.MapResult(
|
2020-02-11 05:04:56 +00:00
|
|
|
|
(Encrypt opts) => opts.Execute(),
|
|
|
|
|
(Decrypt opts) => opts.Execute(),
|
|
|
|
|
(Validate opts) => opts.Execute(),
|
|
|
|
|
(DownloadUrl opts) => opts.Execute(),
|
|
|
|
|
(UpdateModlists opts) => opts.Execute(),
|
|
|
|
|
(UpdateNexusCache opts) => opts.Execute(),
|
2020-02-19 14:49:06 +00:00
|
|
|
|
(ChangeDownload opts) => opts.Execute(),
|
2020-02-25 23:10:41 +00:00
|
|
|
|
(ServerLog opts) => opts.Execute(),
|
2020-03-02 23:16:15 +00:00
|
|
|
|
(MyFiles opts) => opts.Execute(),
|
|
|
|
|
(DeleteFile opts) => opts.Execute(),
|
2020-04-06 18:26:09 +00:00
|
|
|
|
(Changelog opts) => opts.Execute(),
|
2020-04-08 19:56:53 +00:00
|
|
|
|
(FindSimilar opts) => opts.Execute(),
|
2020-05-02 20:15:36 +00:00
|
|
|
|
(BSADump opts) => opts.Execute(),
|
2020-05-04 23:03:50 +00:00
|
|
|
|
(MigrateGameFolderFiles opts) => opts.Execute(),
|
2020-06-20 22:51:47 +00:00
|
|
|
|
(HashFile opts) => opts.Execute(),
|
2020-07-02 04:50:30 +00:00
|
|
|
|
(InlinedFileReport opts) => opts.Execute(),
|
2020-01-31 22:38:56 +00:00
|
|
|
|
errs => 1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|