wabbajack/Wabbajack.CLI/Verbs/AVerb.cs
2020-04-06 19:14:46 +02:00

19 lines
461 B
C#

using System.Threading.Tasks;
namespace Wabbajack.CLI.Verbs
{
public abstract class AVerb
{
public int Execute()
{
if (!CLIUtils.HasValidArguments(this))
CLIUtils.Exit("The provided arguments are not valid! Check previous messages for more information",
ExitCode.BadArguments);
return (int)Run().Result;
}
protected abstract Task<ExitCode> Run();
}
}