Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
 public string ExecuteCommand(string cmd)
 {
     return(_Executor.ExecuteCommand(_Parser.Parse(cmd)));
 }