wp-cli / ideas

💡 Ideas and feature requests are collected here
40 stars 1 forks source link

Support restarting a shell #63

Open schlessera opened 6 years ago

schlessera commented 6 years ago

The wp shell command is super useful for debugging sessions, however it is quite tedious when you need to make code changes, as it does not reload the modified code.

By properly spawning the actual REPL in a new PHP process, and by checking the exit state for a specific result, it should be possible to inject a command that allows for restarting the REPL.

Bonus points: provide a wp shell --watch=<folder> command that watches for changes in a specific folder and restarts the shell automatically.

danielbachhuber commented 6 years ago

💯