示例#1
0
 private void StartInputLoop(IJishInterpreter interpreter)
 {
     Console.WriteLine("Welcome to Jish. Type '.help' for more options.");
     while (true)
     {
         string command = interpreter.ReadCommand();
         interpreter.ExecuteCommand(command);
     }
 }
示例#2
0
 private void StartInputLoop(IJishInterpreter interpreter)
 {
     Console.WriteLine("Welcome to Jish. Type '.help' for more options.");
       while (true)
       {
     string command = interpreter.ReadCommand();
     interpreter.ExecuteCommand(command);
       }
 }
示例#3
0
文件: JishHost.cs 项目: plkumar/jish
        private bool ExecuteHost(string command)
        {
            try
            {
                jish.ExecuteCommand(command);
            } catch (Exception e)
            {
                ExceptionHelper.WriteToActivityLog(e);
                throw;
            }

            return(true);
        }
示例#4
0
        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;
"
                );
        }