public string Execute(int index) { if (index < 0 || index >= Entries.Count) { throw new Exception("Tried to execute command from history at nonexistant index."); } return(_Executor.ExecuteCommand(_Parser.Parse(Entries[index]), index)); }
public string ExecuteCommand(string cmd) { return(_Executor.ExecuteCommand(_Parser.Parse(cmd))); }