jline/jline2 — pull request #61 by baptistemesta (2012-11-08 19:02:16+00:00)
Title: Abstract shell

Hi,
I coded that And I think it would be useful for others to have it.

It's just a small framework to make development of shell easier.
There is an abstract shell that clients can extends and on which Commands can be contributed.
Each commands define their completers, name and business code.
Clients can define a context that will be given to commands when executed.

The CommandArgumentsCompleter allows to complete command name and then delegate the completion to completers of each command.

Basically to write your own shell you just have to extends BaseShell.
The most important thing here is the initShellCommands that must returns a list of ShellCommand.

If you find this interesting tell me.
Also there is no test yet but I can add some.