That did it.  Thanks Ioannis.

On Fri, Sep 7, 2012 at 10:32 AM, Ioannis Canellos <[email protected]> wrote:

> Hi Scott,
>
> The first thing you need to do is to acquire the command session in the
> completer.
> The command session can be acquired from the CommandSessionHolder which
> uses a thread local variable to store command sessions.
> From the command session you can get the argument list:
>
> ArgumentCompleter.ArgumentList list = (ArgumentCompleter.ArgumentList)
> commandSession.get(ArgumentCompleter.ARGUMENTS_LIST);
>
> A complete example is inside karaf itself at:
> https://svn.apache.org/repos/asf/karaf/trunk/config/command/src/main/java/org/apache/karaf/config/command/completers/ConfigurationPropertyCompleter.java
>
> I think that this should work on all karaf versions from 2.2.5 and above.
> --
> *Ioannis Canellos*
> *
> FuseSource <http://fusesource.com>
>
> **
> Blog: http://iocanel.blogspot.com
> **
> Twitter: iocanel
> *
>
>
>


-- 
-- 
Scott England-Sullivan
----------------------------------
FuseSource
Web:     http://www.fusesource.com
Blog:     http://sully6768.blogspot.com
Twitter: sully6768

Reply via email to