doublemarked / loopback-console

A command-line tool for Loopback app debugging and administration
MIT License
68 stars 6 forks source link

Reload codebase from within console instance #4

Closed gausie closed 9 years ago

gausie commented 9 years ago

Would be great to be able to keep all the variables that have been set but reload the code in place.

doublemarked commented 9 years ago

Hey Samuel - this is a good suggestion, and we'll see if we can get it included.

doublemarked commented 9 years ago

Hey @gausie - spent some time thinking about this but have come to feel that such a reload (while maintaining console state) is probably unrealistic. It would be difficult to ensure that local variables that point to model instances (and other LB components) got reloaded with the new code. It's possible to do in a poor way but complex to do comprehensively. Sorry about this!