joyent/node — pull request #8484 by diosney (2014-10-01 21:21:08+00:00)
Title: repl: added support for custom completions

Currently I'm working on a project that uses the REPL to implement a mid complex CLI app found out that the REPL module doesn't have a way to override the default `complete()` function, which is used for TAB completions of commands.

I think that the REPL module can benefit from this addition, and specifically the repl applications that may wants to use this functionality.

I added the docs & tests, and the tests passed fine in my environment. **This is just a little change, after all**.