Hi Ken,

It's very easy: your command just has to extend org.apache.karaf.shell.console.AbstractAction.

You have directly access to the session.

Regards
JB

On 12/10/2013 12:27 AM, ken wrote:
Hi,

While it is very trivial to create an alias using the alias command and all
there is, is to call session.execute(str).  Would it be possible to some how
retrieve an active CommandSession from a bundle and use it?

Thanks,

Ken



--
View this message in context: 
http://karaf.922171.n3.nabble.com/programmaticly-create-an-alias-tp4030607.html
Sent from the Karaf - User mailing list archive at Nabble.com.


--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to