public static bool IsCommand(this string command, out TaskerCommand type)
        {
            var firstWord = command.Shift();

            return(Enum.TryParse(firstWord, true, out type));
        }
Пример #2
0
        public void Execute(TaskerCommand command, string[] paramters)
        {
            var executor = _commandExecutorMap[command];

            executor.Execute(_commandContext, paramters);
        }