mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
19 lines
413 B
C#
19 lines
413 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", -1);
|
|
|
|
return Run().Result;
|
|
}
|
|
|
|
protected abstract Task<int> Run();
|
|
|
|
}
|
|
}
|