mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Summary: Invoking `meteor shell` starts an interactive REPL for evaluating server-side code. Shell commands are evaluated in the server process, so the shell's input and output have to be piped through a socket from/to the parent process that runs the `meteor shell` command. This separation accounts for most of the complexity of this diff, but the end result is pretty seamless: tab completion, history, ctlr-c and ctrl-d, etc. all work as expected. Task: https://app.asana.com/0/15750483766338/16576093991355 Test Plan: Run `meteor run` in one terminal and `meteor shell` in another, evaluate some commands, and verify that the commands seem to be running the context of the server process. Also check tab completion and history, and ensure that the server is running simultaneously with the shell. Reviewers: dgreenspan, avital, slava, emily, nim, sashko CC: sashko Differential Revision: https://phabricator.meteor.com/D837