That's because completion and the help system is specific to karaf commands, as they are when you use the gogo commands (for help at least). This is kinda historical as the karaf commands did exist before gogo commands annotations. I suppose the karaf help system could be able recognize plain gogo commands and display help correctly though. You could raise a JIRA issue for that, I think it's doable, though I don't think we provide the annotations in the basic karaf distribution.
On Tue, Jan 8, 2013 at 1:46 AM, Gareth <[email protected]> wrote: > Hello, > > I am curious - What is the difference between a Gogo command and a Karaf > command? > > I ask because I wrote for myself a couple of gogo commands. If I run > vanilla > OSGi (e.g. equinox) with gogo they run fine. The commands also show up if I > run gogo "help". > > If I run these same gogo commands in karaf, they also appear to work. > However, the commands don't show up in Karaf help and I cannot take > advantage of other advanced karaf console features like autocomplete with > these commands. > > Any reason why this would not work? Is there perhaps just an additional > service property I can add which will allow me to take advantage of the > additional Karaf console support? Having looked at a few Karaf console > command examples, I see they all extend the Karaf class OsgiCommandSupport, > which I prefer not to do as I would like to avoid having to explicitly > depend on Karaf classes. > > thanks in advance, > Gareth > > > > > -- > View this message in context: > http://karaf.922171.n3.nabble.com/Gogo-vs-Karaf-Commands-tp4027219.html > Sent from the Karaf - User mailing list archive at Nabble.com. > -- ------------------------ Guillaume Nodet ------------------------ Blog: http://gnodet.blogspot.com/ ------------------------ FuseSource, Integration everywhere http://fusesource.com
