public static BufferedCommandResponse ExecuteBufferedCommand(string cmd) { var trigger = new BufferedCommandTrigger(new StringStream(cmd)); Instance.Execute(trigger); return(trigger.Response); }
/// <summary> /// Calls <code>return Execute(new CmdTrigger(text));</code>. /// </summary> /// <param name="text"></param> /// <returns></returns> public static bool Execute(StringStream text) { var trigger = new DefaultCmdTrigger(text); if (!trigger.InitTrigger()) { return(true); } return(Instance.Execute(trigger)); }