karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Schneider (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-647) Support of sub-shell
Date Fri, 02 Dec 2011 14:19:40 GMT

    [ https://issues.apache.org/jira/browse/KARAF-647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13161655#comment-13161655

Christian Schneider commented on KARAF-647:

I would like to also consider a resource based concept for sub shells. To avoid having overlap
between resource names and
commands I propose to use cd to go into a sub shell. Some use cases below:

Config Management
karaf@root:/> cd config
karaf@root:/config/org.apache.karaf.log> cd org.apache.karaf.log
karaf@root:/config/org.apache.karaf.log> transaction
karaf@root:/config/org.apache.karaf.log> set size 600
karaf@root:/config/org.apache.karaf.log> commit

Camel routes
karaf@root:/> cd camel/route/myroute
karaf@root:/camel/route/myroute> start
karaf@root:/camel/route/myroute> set trace on
karaf@root:/camel/route/myroute/stats> ls

Add a camel route
karaf@root:/> cd camel/route
karaf@root:/camel/route> add myroute from("file:test").to("jms:myqueue")

CXF Services
karaf@root:/> cd cxf/org.example.myservice/myport
karaf@root:/cxf/org.example.myservice/myport> cd stats
karaf@root:/cxf/org.example.myservice/myport/stats> ls

So like in REST we could have a mostly common set of verbs for very different resources.
Like :
add: add a subelement
get: read a value
set or put: write a value
ls: list subelements
transaction: Start a transaction
commit: Commit the current transaction
rollback: Rollback the current transaction

> Support of sub-shell
> --------------------
>                 Key: KARAF-647
>                 URL: https://issues.apache.org/jira/browse/KARAF-647
>             Project: Karaf
>          Issue Type: New Feature
>          Components: karaf-shell
>            Reporter: Jean-Baptiste Onofré
>             Fix For: 3.0.0
> Thanks the high Karaf adoption level, we have projects that provide Karaf shell commands.
> For instance, Camel provides Karaf commands, like ACE, CXF, ServiceMix, etc do.
> It could be helpful to have a kind of sub-shells, similar to the Cisco IoS shell:
> karaf@root> camel
> karaf@root:camel> route:list
> karaf@root:camel> route:stop
> karaf@root:camel> exit
> karaf@root> ace
> karaf@root:ace> distribution:list
> karaf@root:ace> exit

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message