private void StartInputLoop(IJishInterpreter interpreter) { Console.WriteLine("Welcome to Jish. Type '.help' for more options."); while (true) { string command = interpreter.ReadCommand(); interpreter.ExecuteCommand(command); } }
private bool ExecuteHost(string command) { try { jish.ExecuteCommand(command); } catch (Exception e) { ExceptionHelper.WriteToActivityLog(e); throw; } return(true); }
public override void Execute(params string[] args) { jish.ClearBufferedCommand(); console.log("Clearing context..."); jish.ExecuteCommand( @" for (var i in this) { if (i === 'console' || i === 'global') continue; delete this[i]; } null; " ); }