Use separate history for REPL

Description

The command history is nice in the REPL, but it should probably have it's own. That goes for the tag repl and script repl. See if there is a way to switch out the history when the REPL starts and stops.

Activity

Show:
Luis Majano
June 30, 2014, 11:23 PM

Is there a way to switch this?

Brad Wood
July 1, 2014, 1:57 AM

Well, this is how the history object is set in ReaderFactory.cfc:

I don't see why we can't have a script and tag REPL history as well. Just flush, and switch the history objects when starting the REPL, and revert the history object when exiting the REPL command.

Brad Wood
July 5, 2014, 4:40 PM
Edited

Tag and script REPL still share the same history which doesn't satisfy the ticket description. I can't think of any reason to share history between script and tag REPL.

Brad Wood
July 9, 2014, 8:43 PM

Crap, I started on this too last night but forgot to reassign. I thought it would be a quick fix, but I didn't commit it because I ran into issues where the WireBox mapping was actually creating a new instance of the Java object every time I created it so clearing history, etc didn't actually work correctly. I'll look at what you did and see if it also has the same issue.

Fixed

Assignee

Luis Majano

Reporter

Brad Wood

Labels

None

Affects versions

None

Fix versions

Time tracking

0m

Time remaining

30m

Priority

Major

Components