2020-02-17 02:44:21 +00:00
|
|
|
|
namespace RecrownedGTK.Tools.CommandProcessor.Commands
|
|
|
|
|
{
|
|
|
|
|
internal class StopCommand : EngineCommand
|
|
|
|
|
{
|
|
|
|
|
CommandEngine commandEngine;
|
|
|
|
|
|
|
|
|
|
public StopCommand(CommandEngine commandEngine) : base("quit", "stop", "q", "exit")
|
|
|
|
|
{
|
|
|
|
|
this.commandEngine = commandEngine;
|
|
|
|
|
help = "Exits the tool.";
|
|
|
|
|
}
|
|
|
|
|
|
2020-02-24 01:51:39 +00:00
|
|
|
|
public override void Run(IUserInput userInput, IUserOutput userOutput, string[] arguments = null)
|
2020-02-17 02:44:21 +00:00
|
|
|
|
{
|
|
|
|
|
commandEngine.running = false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|