mhf-server/Mhf.Cli/Command/ConsoleCommand.cs
2019-11-24 19:43:35 +08:00

24 lines
544 B
C#

using Arrowgene.Services.Logging;
using Mhf.Cli.Argument;
namespace Mhf.Cli.Command
{
public abstract class ConsoleCommand : IConsoleCommand
{
protected ConsoleCommand()
{
Logger = LogProvider.Logger(this);
}
protected readonly ILogger Logger;
public abstract string Key { get; }
public abstract string Description { get; }
public abstract CommandResultType Handle(ConsoleParameter parameter);
public virtual void Shutdown()
{
}
}
}