public static bool IsCommand(this string command, out TaskerCommand type) { var firstWord = command.Shift(); return(Enum.TryParse(firstWord, true, out type)); }
public void Execute(TaskerCommand command, string[] paramters) { var executor = _commandExecutorMap[command]; executor.Execute(_commandContext, paramters); }