Just one question,
what's the effect on already existing Karaf commands and those completions
If that is not affected at all I've got no complaints ;)
2016-10-12 18:41 GMT+02:00 Guillaume Nodet <gno...@apache.org>:
> The problem is to obtain the list of scripts that needs to be loaded
> If we somehow include (using the source command for example), it means we
> need to copy the script file *and* modify another script, which may be a
> bit more complicated than necessary.
> 2016-10-12 18:38 GMT+02:00 Jean-Baptiste Onofré <j...@nanthrax.net>:
> > Hi Guillaume,
> > what about a etc/gosh_profilerc that can load other scripts ?
> > Regards
> > JB
> > On 10/12/2016 05:57 PM, Guillaume Nodet wrote:
> >> 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
> >> script at https://gist.github.com/gnodet/18de68d57fc959efb7f9e4766415ff
> >> 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
> >> 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 ?
> > --
> > Jean-Baptiste Onofré
> > jbono...@apache.org
> > http://blog.nanthrax.net
> > Talend - http://www.talend.com
> Guillaume Nodet
> Red Hat, Open Source Integration
> Email: gno...@redhat.com
> Web: http://fusesource.com
> Blog: http://gnodet.blogspot.com/
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
Software Architect / Project Manager / Scrum Master