mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-02-14 07:43:31 -07:00
18 lines
396 B
C#
18 lines
396 B
C#
using System.Threading.Tasks;
|
|
|
|
namespace DiscordChatExporter.Cli.Verbs
|
|
{
|
|
public abstract class Verb<TOptions>
|
|
{
|
|
protected TOptions Options { get; }
|
|
|
|
protected Verb(TOptions options)
|
|
{
|
|
Options = options;
|
|
}
|
|
|
|
public abstract Task ExecuteAsync();
|
|
|
|
public virtual void Execute() => ExecuteAsync().GetAwaiter().GetResult();
|
|
}
|
|
} |