You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@karaf.apache.org by rcbandit <pe...@gmail.com> on 2015/05/15 00:27:22 UTC

Commands with arguments in Karaf 4.0.0

I have a question about how to create commands with arguments in Karaf 4.0.0.
I want to create something like this

mymodule>create --server server33 --ip-address 192.168.1.1

or

mymoule>create -s server33 --ip 192.168.1.1

Can you show me how I can do this?



--
View this message in context: http://karaf.922171.n3.nabble.com/Commands-with-arguments-in-Karaf-4-0-0-tp4040362.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.

Re: Commands with arguments in Karaf 4.0.0

Posted by Achim Nierbeck <bc...@googlemail.com>.
Hi,

take a look at how I created some commands to connect to an cassandra
database at [1].
That should give you enough ideas ;)

regards, Achim

[1] -
https://github.com/ANierbeck/Karaf-Cassandra/blob/master/Karaf-Cassandra-Shell/src/main/java/de/nierbeck/cassandra/embedded/shell/Connect.java

2015-05-15 0:27 GMT+02:00 rcbandit <pe...@gmail.com>:

> I have a question about how to create commands with arguments in Karaf
> 4.0.0.
> I want to create something like this
>
> mymodule>create --server server33 --ip-address 192.168.1.1
>
> or
>
> mymoule>create -s server33 --ip 192.168.1.1
>
> Can you show me how I can do this?
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/Commands-with-arguments-in-Karaf-4-0-0-tp4040362.html
> Sent from the Karaf - Dev mailing list archive at Nabble.com.
>



-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master