Wouldn't you just keep a history of everything that goes through Shell::in() and then iterate through the history when ShellDispatcher::getInput() returned an arrow? Okay so maybe not super easy. Actually I wonder if it's even possible since the shell already captures those keys. Hmm interesting.
On Thursday, March 1, 2012 2:14:29 PM UTC-8, Simon Males wrote: > > I was a little skeptical of your comment that it shouldn't be hard to > code... then came across this: > > http://www.php.net/manual/en/features.commandline.interactive.php > > I didn't know that PHP had an interactive shell. I believe the closest > I got was the -r parameter! > > On Thu, Mar 1, 2012 at 3:55 PM, jeremyharris <[email protected]> > wrote: > > I don't know of any, but that might be a fun contribution to add :) > > > > I'd create a lighthouse RFC ticket and post some code to see what people > > (and the core team) think. It shouldn't be too hard to code, either. > > > > > > On Wednesday, February 29, 2012 7:33:58 PM UTC-8, Simon Males wrote: > >> > >> Hello, > >> > >> Are there any hacks out there to support command history in CakePHP > >> console? > >> > >> Closest thing I could find is this: https://github.com/sizuhiko/Taste > >> using Facebook's phpsh. > >> > >> Though it's not supported by 2.0 > >> > >> -- > >> Simon Males > > > > -- > > Our newest site for the community: CakePHP Video Tutorials > > http://tv.cakephp.org > > Check out the new CakePHP Questions site http://ask.cakephp.org and help > > others with their CakePHP related questions. > > > > > > To unsubscribe from this group, send email to > > [email protected] For more options, visit this > group at > > http://groups.google.com/group/cake-php > > -- > Simon Males > > -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
