karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francois Papon <francois.pa...@openobject.fr>
Subject [JLINE] - interactive command
Date Thu, 01 Mar 2018 14:07:43 GMT
Hi,

I would like to know if it's possible to use interactive command in Karaf ?

For example, using the jdbc command, actually we use :

karaf@root()> jdbc:ds-create -url "jdbc:h2:file:/tmp/decanter" -dc
org.apache.derby.jdbc.EmbeddedDriver -dbName decanter jdbc/decanter

We could use :

karaf@root()> jdbc:ds-create

    DriverClass [org.apache.derby.jdbc.EmbeddedDriver] :
org.apache.derby.jdbc.EmbeddedDriver

    URL [jdbc:h2:file:/tmp/dbfile] : jdbc:h2:file:/tmp/decanter

    Database name [mydb] : decanter

    Jdbc name [jdbc/mydb] : jdbc/decanter

    Create datasource ? [Y/n] : Y

karaf@root()>

Is it possible with JLine and the command specifications in Karaf ?

François


Mime
View raw message