Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save/Restore session #11

Open
victorb opened this issue Mar 21, 2016 · 1 comment
Open

Save/Restore session #11

victorb opened this issue Mar 21, 2016 · 1 comment

Comments

@victorb
Copy link
Owner

victorb commented Mar 21, 2016

Something that would be useful to have is a save/restore functionality, where previous entered code and state can be restored in a future session.

  1. User enters trymodule lodash and repl opens with lodash installed
  2. User enters var something = lodash.repeat('WIN', 5)
  3. User enters save()
  4. User closes repl and opens it again with trymodule colors
  5. User enters restore()

And now something and lodash is available in the repl again.

@ozantunca
Copy link

I suppose save() and restore() functions should be used as properties of an object such as trymodule.save() to protect them from accidental overrides.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants