Re: Writing commands for karaf shell.

2017-07-22 Thread Guillaume Nodet
2017-07-22 7:44 GMT+02:00 Christian Schneider : > That sounds interesting. Can you point us to the code where those commands > are implemented and where the completion is defined? > I know there is the completion support that you can define in the shell > init script but

Re: Writing commands for karaf shell.

2017-07-22 Thread Guillaume Nodet
2017-07-22 12:16 GMT+02:00 Tim Ward : > Sorry to wind this back a little, but there were a couple of questions > from Tom which got skipped over. > > I'm afraid that when it comes to shells there isn't a standard. There was > an RFC created a long time ago, which roughly

Re: Writing commands for karaf shell.

2017-07-22 Thread Jean-Baptiste Onofré
That's what I said: there is not generic standard and the standard in Karaf is the Karaf commands. My €0.1 Regards JB On Jul 22, 2017, 12:16, at 12:16, Tim Ward wrote: >Sorry to wind this back a little, but there were a couple of questions >from Tom which got skipped

Re: Writing commands for karaf shell.

2017-07-22 Thread Tim Ward
Sorry to wind this back a little, but there were a couple of questions from Tom which got skipped over. I'm afraid that when it comes to shells there isn't a standard. There was an RFC created a long time ago, which roughly represented the work that is now Gogo. There was a decision at the

Re: Writing commands for karaf shell.

2017-07-21 Thread tom
> If you look at Karaf >= 4.1.x, a bunch of commands are not coming from > Karaf anymore, but from Gogo or JLine. I moved them when working on the > gogo / jline3 integration. The main point that was blocking imho is that > they did not have completion support. With the new fully scripted >

Re: Writing commands for karaf shell.

2017-07-21 Thread Guillaume Nodet
If you look at Karaf >= 4.1.x, a bunch of commands are not coming from Karaf anymore, but from Gogo or JLine. I moved them when working on the gogo / jline3 integration. The main point that was blocking imho is that they did not have completion support. With the new fully scripted completion

Re: Writing commands for karaf shell.

2017-07-21 Thread tom
Yes, but what's the actual situation from a standards point of view? Is a shell defined by a standard at all? OSGi enroute seems to require a gogo shell and appears to rely on felix gogo shell command framework. Is it just that Karaf happens to ship a shell that happens to be based on the felix

Writing commands for karaf shell.

2017-07-21 Thread tom
There was a thread recently related to this, but I have a different question. I'm confused about the shell situation, and what is "standard" and what is not. I have naively written some commands for the felix gogo shell. We develop using bndtools (obviously) and use the OSGI enRoute templates,