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 *
