Awesome.
I will take a look. Let me know for the scr commands, I can tackle that.
Regards
JB
On 10/19/2016 11:30 AM, Guillaume Nodet wrote:
I have committed my changes.
I still need to replace the karaf scr commands with the native ones and
write the completion data for it.
2016-10-12 17:57 GMT+02:00 Guillaume Nodet <gno...@apache.org>:
I'm working on trying to nicely integrate gogo commands.
The new gogo-jline bundle has a very nice way to allow external
configuration for command completion. For example, one need to execute the
script at https://gist.github.com/gnodet/18de68d57fc959efb7f9e4766415ff5e
to add full completion to the Karaf shell once you have the scr bundle
installed (it always provides gogo commands). Other examples are available
at https://github.com/apache/felix/blob/trunk/gogo/jline/
src/main/resources/gosh_profile
The question is : how to provide such a script.
One possibility would be to have a dedicated folder such as etc/scripts/
where all scripts would be loaded when a session is started. We could then
reference those files in features so that they are copied when features are
installed.
This would allow leveraging the <configfile> feature xml element.
Do you guys have better ideas ?
--
------------------------
Guillaume Nodet
------------------------
Red Hat, Open Source Integration
Email: gno...@redhat.com
Web: http://fusesource.com
Blog: http://gnodet.blogspot.com/
--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com