mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
19 lines
461 B
C#
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();
|
|
}
|
|
}
|