You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@karaf.apache.org by "jb@nanthrax.net" <jb...@nanthrax.net> on 2012/05/22 13:21:46 UTC

Re: [jira] [Commented] (KARAF-647) Support of sub-shell

As reminder, the purpose is to have IoS like shell console. That's why we don't have cd command.

--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://wwx.talend.com

----- Reply message -----
From: "Christian Schneider (JIRA)" <ji...@apache.org>
To: <jb...@apache.org>
Subject: [jira] [Commented] (KARAF-647) Support of sub-shell
Date: Tue, May 22, 2012 12:14 pm



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

Christian Schneider commented on KARAF-647:
-------------------------------------------

I just reviewed the prototype. What I don´t like is the auto generation of commands to enter the subshells.
I would prefer to have a single command like cd <subshellname> to enter subshells. This is much simpler
to implement and allows even better completion as the completion then will only show scopes.

It also allows to extend the concept to the resource model I proposed above as we have more freedom what to do when cd is called then
having single sommands for each subshell.
                
> 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é
>            Assignee: 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

       

Re: [jira] [Commented] (KARAF-647) Support of sub-shell

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Thanks for the update Guillaume. I will update my local copy and fix that.

Regards
JB

On 05/23/2012 02:29 PM, Guillaume Nodet wrote:
> I've seen a couple of problems in trunk with subshells:
>
> karaf@root()>  instance
> karaf@root(instance)>  list
>
> that one executes bundle:list instead of instance:list.  I suppose the
> scope is not correctly updated.
>
> karaf@root()>  admin:connect foo
>
> this one fails because ssh is not the command anymore, but rather the
> shell.  I guess it can easily be fixed by using ssh:ssh instead.
>
> On Tue, May 22, 2012 at 2:11 PM, Guillaume Nodet<gn...@gmail.com>  wrote:
>> The help command does that afaik.  I'd keep the real completion for
>> everything, not only for subshells.
>>
>> On Tue, May 22, 2012 at 2:07 PM, Christian Schneider
>> <ch...@die-schneider.net>  wrote:
>>> I understand but I still think a cd command could help. At the very least it
>>> would allow command completion for subshells.
>>> Currently if you want a hint which subshell to choose you can only type tab
>>> which shows 242 commands.
>>>
>>> With cd<tab>  you would see only the subshells which should be around 10
>>> which would give the user a much better overview.
>>>
>>> So an idea would be to add the cd command without removing the geneated
>>> subshell commands.
>>>
>>> Btw. I think we could also improve the completion list shown by simply
>>> typing<tab>. If we only show the scope of commands with scope that would
>>> make the list a lot smaller.
>>> When you then type the whole scope we could show the commands in the scope.
>>>
>>> Christian
>>>
>>> Am 22.05.2012 13:21, schrieb jb@nanthrax.net:
>>>
>>>> As reminder, the purpose is to have IoS like shell console. That's why we
>>>> don't have cd command.
>>>>
>>>> --
>>>> Jean-Baptiste Onofré
>>>> jbonofre@apache.org
>>>> http://blog.nanthrax.net
>>>> Talend - http://wwx.talend.com
>>>>
>>>> ----- Reply message -----
>>>> From: "Christian Schneider (JIRA)"<ji...@apache.org>
>>>> To:<jb...@apache.org>
>>>> Subject: [jira] [Commented] (KARAF-647) Support of sub-shell
>>>> Date: Tue, May 22, 2012 12:14 pm
>>>>
>>>>
>>>>
>>>>      [
>>>> https://issues.apache.org/jira/browse/KARAF-647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13280861#comment-13280861
>>>> ]
>>>>
>>>> Christian Schneider commented on KARAF-647:
>>>> -------------------------------------------
>>>>
>>>> I just reviewed the prototype. What I don´t like is the auto generation of
>>>> commands to enter the subshells.
>>>> I would prefer to have a single command like cd<subshellname>    to enter
>>>> subshells. This is much simpler
>>>> to implement and allows even better completion as the completion then will
>>>> only show scopes.
>>>>
>>>> It also allows to extend the concept to the resource model I proposed
>>>> above as we have more freedom what to do when cd is called then
>>>> having single sommands for each subshell.
>>>>
>>>>> 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é
>>>>>             Assignee: 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
>>>>
>>>>
>>>
>>>
>>> --
>>> Christian Schneider
>>> http://www.liquid-reality.de
>>>
>>> Open Source Architect
>>> Talend Application Integration Division http://www.talend.com
>>>
>>
>>
>>
>> --
>> ------------------------
>> Guillaume Nodet
>> ------------------------
>> Blog: http://gnodet.blogspot.com/
>> ------------------------
>> FuseSource, Integration everywhere
>> http://fusesource.com
>
>
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: [jira] [Commented] (KARAF-647) Support of sub-shell

Posted by Christian Schneider <ch...@die-schneider.net>.
Yes that is right. I will handle it in this jira. I think I also did the 
other fixes there.

Christian

Am 23.05.2012 16:16, schrieb Guillaume Nodet:
> Btw, I don't think there's a need to open new JIRA give KARAF-647 is
> still in progress.
>
>

-- 
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
Talend Application Integration Division http://www.talend.com


Re: [jira] [Commented] (KARAF-647) Support of sub-shell

Posted by Guillaume Nodet <gn...@gmail.com>.
Btw, I don't think there's a need to open new JIRA give KARAF-647 is
still in progress.

On Wed, May 23, 2012 at 3:18 PM, Guillaume Nodet <gn...@gmail.com> wrote:
> Not sure, I haven't looked at how the subshells are implemented yet,
> but I suppose it modifies the session variable SCOPE to reduce the
> default commands set.
> I would think that the current subshell scope should be added to the
> beginning of that list instead of at the end (if that's how it works).
>
> For the admin:connect, the ssh command is launched as a string, so
> replacing ssh with ssh:ssh should make the trick.
>
> On Wed, May 23, 2012 at 3:09 PM, Christian Schneider
> <ch...@die-schneider.net> wrote:
>> I also encountered these bugs but was not sure how to fix that.
>>
>> Can you open a jira issue? If you have any ideas how to solve it I can do
>> the implementation.
>>
>> Christian
>>
>> Am 23.05.2012 14:29, schrieb Guillaume Nodet:
>>
>>> I've seen a couple of problems in trunk with subshells:
>>>
>>> karaf@root()>  instance
>>> karaf@root(instance)>  list
>>>
>>> that one executes bundle:list instead of instance:list.  I suppose the
>>> scope is not correctly updated.
>>>
>>> karaf@root()>  admin:connect foo
>>>
>>> this one fails because ssh is not the command anymore, but rather the
>>> shell.  I guess it can easily be fixed by using ssh:ssh instead.
>>>
>>> On Tue, May 22, 2012 at 2:11 PM, Guillaume Nodet<gn...@gmail.com>  wrote:
>>>>
>>>> The help command does that afaik.  I'd keep the real completion for
>>>> everything, not only for subshells.
>>>>
>>>> On Tue, May 22, 2012 at 2:07 PM, Christian Schneider
>>>> <ch...@die-schneider.net>  wrote:
>>>>>
>>>>> I understand but I still think a cd command could help. At the very
>>>>> least it
>>>>> would allow command completion for subshells.
>>>>> Currently if you want a hint which subshell to choose you can only type
>>>>> tab
>>>>> which shows 242 commands.
>>>>>
>>>>> With cd<tab>  you would see only the subshells which should be around 10
>>>>> which would give the user a much better overview.
>>>>>
>>>>> So an idea would be to add the cd command without removing the geneated
>>>>> subshell commands.
>>>>>
>>>>> Btw. I think we could also improve the completion list shown by simply
>>>>> typing<tab>. If we only show the scope of commands with scope that would
>>>>> make the list a lot smaller.
>>>>> When you then type the whole scope we could show the commands in the
>>>>> scope.
>>>>>
>>>>> Christian
>>>>>
>>>>> Am 22.05.2012 13:21, schrieb jb@nanthrax.net:
>>>>>
>>>>>> As reminder, the purpose is to have IoS like shell console. That's why
>>>>>> we
>>>>>> don't have cd command.
>>>>>>
>>>>>> --
>>>>>> Jean-Baptiste Onofré
>>>>>> jbonofre@apache.org
>>>>>> http://blog.nanthrax.net
>>>>>> Talend - http://wwx.talend.com
>>>>>>
>>>>>> ----- Reply message -----
>>>>>> From: "Christian Schneider (JIRA)"<ji...@apache.org>
>>>>>> To:<jb...@apache.org>
>>>>>> Subject: [jira] [Commented] (KARAF-647) Support of sub-shell
>>>>>> Date: Tue, May 22, 2012 12:14 pm
>>>>>>
>>>>>>
>>>>>>
>>>>>>     [
>>>>>>
>>>>>> https://issues.apache.org/jira/browse/KARAF-647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13280861#comment-13280861
>>>>>> ]
>>>>>>
>>>>>> Christian Schneider commented on KARAF-647:
>>>>>> -------------------------------------------
>>>>>>
>>>>>> I just reviewed the prototype. What I don´t like is the auto generation
>>>>>> of
>>>>>> commands to enter the subshells.
>>>>>> I would prefer to have a single command like cd<subshellname>    to
>>>>>> enter
>>>>>> subshells. This is much simpler
>>>>>> to implement and allows even better completion as the completion then
>>>>>> will
>>>>>> only show scopes.
>>>>>>
>>>>>> It also allows to extend the concept to the resource model I proposed
>>>>>> above as we have more freedom what to do when cd is called then
>>>>>> having single sommands for each subshell.
>>>>>>
>>>>>>> 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é
>>>>>>>            Assignee: 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
>>>>>>
>>>>>>
>>>>>
>>>>> --
>>>>> Christian Schneider
>>>>> http://www.liquid-reality.de
>>>>>
>>>>> Open Source Architect
>>>>> Talend Application Integration Division http://www.talend.com
>>>>>
>>>>
>>>>
>>>> --
>>>> ------------------------
>>>> Guillaume Nodet
>>>> ------------------------
>>>> Blog: http://gnodet.blogspot.com/
>>>> ------------------------
>>>> FuseSource, Integration everywhere
>>>> http://fusesource.com
>>>
>>>
>>>
>>
>>
>> --
>> Christian Schneider
>> http://www.liquid-reality.de
>>
>> Open Source Architect
>> Talend Application Integration Division http://www.talend.com
>>
>
>
>
> --
> ------------------------
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> ------------------------
> FuseSource, Integration everywhere
> http://fusesource.com



-- 
------------------------
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
FuseSource, Integration everywhere
http://fusesource.com

Re: [jira] [Commented] (KARAF-647) Support of sub-shell

Posted by Guillaume Nodet <gn...@gmail.com>.
Not sure, I haven't looked at how the subshells are implemented yet,
but I suppose it modifies the session variable SCOPE to reduce the
default commands set.
I would think that the current subshell scope should be added to the
beginning of that list instead of at the end (if that's how it works).

For the admin:connect, the ssh command is launched as a string, so
replacing ssh with ssh:ssh should make the trick.

On Wed, May 23, 2012 at 3:09 PM, Christian Schneider
<ch...@die-schneider.net> wrote:
> I also encountered these bugs but was not sure how to fix that.
>
> Can you open a jira issue? If you have any ideas how to solve it I can do
> the implementation.
>
> Christian
>
> Am 23.05.2012 14:29, schrieb Guillaume Nodet:
>
>> I've seen a couple of problems in trunk with subshells:
>>
>> karaf@root()>  instance
>> karaf@root(instance)>  list
>>
>> that one executes bundle:list instead of instance:list.  I suppose the
>> scope is not correctly updated.
>>
>> karaf@root()>  admin:connect foo
>>
>> this one fails because ssh is not the command anymore, but rather the
>> shell.  I guess it can easily be fixed by using ssh:ssh instead.
>>
>> On Tue, May 22, 2012 at 2:11 PM, Guillaume Nodet<gn...@gmail.com>  wrote:
>>>
>>> The help command does that afaik.  I'd keep the real completion for
>>> everything, not only for subshells.
>>>
>>> On Tue, May 22, 2012 at 2:07 PM, Christian Schneider
>>> <ch...@die-schneider.net>  wrote:
>>>>
>>>> I understand but I still think a cd command could help. At the very
>>>> least it
>>>> would allow command completion for subshells.
>>>> Currently if you want a hint which subshell to choose you can only type
>>>> tab
>>>> which shows 242 commands.
>>>>
>>>> With cd<tab>  you would see only the subshells which should be around 10
>>>> which would give the user a much better overview.
>>>>
>>>> So an idea would be to add the cd command without removing the geneated
>>>> subshell commands.
>>>>
>>>> Btw. I think we could also improve the completion list shown by simply
>>>> typing<tab>. If we only show the scope of commands with scope that would
>>>> make the list a lot smaller.
>>>> When you then type the whole scope we could show the commands in the
>>>> scope.
>>>>
>>>> Christian
>>>>
>>>> Am 22.05.2012 13:21, schrieb jb@nanthrax.net:
>>>>
>>>>> As reminder, the purpose is to have IoS like shell console. That's why
>>>>> we
>>>>> don't have cd command.
>>>>>
>>>>> --
>>>>> Jean-Baptiste Onofré
>>>>> jbonofre@apache.org
>>>>> http://blog.nanthrax.net
>>>>> Talend - http://wwx.talend.com
>>>>>
>>>>> ----- Reply message -----
>>>>> From: "Christian Schneider (JIRA)"<ji...@apache.org>
>>>>> To:<jb...@apache.org>
>>>>> Subject: [jira] [Commented] (KARAF-647) Support of sub-shell
>>>>> Date: Tue, May 22, 2012 12:14 pm
>>>>>
>>>>>
>>>>>
>>>>>     [
>>>>>
>>>>> https://issues.apache.org/jira/browse/KARAF-647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13280861#comment-13280861
>>>>> ]
>>>>>
>>>>> Christian Schneider commented on KARAF-647:
>>>>> -------------------------------------------
>>>>>
>>>>> I just reviewed the prototype. What I don´t like is the auto generation
>>>>> of
>>>>> commands to enter the subshells.
>>>>> I would prefer to have a single command like cd<subshellname>    to
>>>>> enter
>>>>> subshells. This is much simpler
>>>>> to implement and allows even better completion as the completion then
>>>>> will
>>>>> only show scopes.
>>>>>
>>>>> It also allows to extend the concept to the resource model I proposed
>>>>> above as we have more freedom what to do when cd is called then
>>>>> having single sommands for each subshell.
>>>>>
>>>>>> 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é
>>>>>>            Assignee: 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
>>>>>
>>>>>
>>>>
>>>> --
>>>> Christian Schneider
>>>> http://www.liquid-reality.de
>>>>
>>>> Open Source Architect
>>>> Talend Application Integration Division http://www.talend.com
>>>>
>>>
>>>
>>> --
>>> ------------------------
>>> Guillaume Nodet
>>> ------------------------
>>> Blog: http://gnodet.blogspot.com/
>>> ------------------------
>>> FuseSource, Integration everywhere
>>> http://fusesource.com
>>
>>
>>
>
>
> --
> Christian Schneider
> http://www.liquid-reality.de
>
> Open Source Architect
> Talend Application Integration Division http://www.talend.com
>



-- 
------------------------
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
FuseSource, Integration everywhere
http://fusesource.com

Re: [jira] [Commented] (KARAF-647) Support of sub-shell

Posted by Christian Schneider <ch...@die-schneider.net>.
I also encountered these bugs but was not sure how to fix that.

Can you open a jira issue? If you have any ideas how to solve it I can 
do the implementation.

Christian

Am 23.05.2012 14:29, schrieb Guillaume Nodet:
> I've seen a couple of problems in trunk with subshells:
>
> karaf@root()>  instance
> karaf@root(instance)>  list
>
> that one executes bundle:list instead of instance:list.  I suppose the
> scope is not correctly updated.
>
> karaf@root()>  admin:connect foo
>
> this one fails because ssh is not the command anymore, but rather the
> shell.  I guess it can easily be fixed by using ssh:ssh instead.
>
> On Tue, May 22, 2012 at 2:11 PM, Guillaume Nodet<gn...@gmail.com>  wrote:
>> The help command does that afaik.  I'd keep the real completion for
>> everything, not only for subshells.
>>
>> On Tue, May 22, 2012 at 2:07 PM, Christian Schneider
>> <ch...@die-schneider.net>  wrote:
>>> I understand but I still think a cd command could help. At the very least it
>>> would allow command completion for subshells.
>>> Currently if you want a hint which subshell to choose you can only type tab
>>> which shows 242 commands.
>>>
>>> With cd<tab>  you would see only the subshells which should be around 10
>>> which would give the user a much better overview.
>>>
>>> So an idea would be to add the cd command without removing the geneated
>>> subshell commands.
>>>
>>> Btw. I think we could also improve the completion list shown by simply
>>> typing<tab>. If we only show the scope of commands with scope that would
>>> make the list a lot smaller.
>>> When you then type the whole scope we could show the commands in the scope.
>>>
>>> Christian
>>>
>>> Am 22.05.2012 13:21, schrieb jb@nanthrax.net:
>>>
>>>> As reminder, the purpose is to have IoS like shell console. That's why we
>>>> don't have cd command.
>>>>
>>>> --
>>>> Jean-Baptiste Onofré
>>>> jbonofre@apache.org
>>>> http://blog.nanthrax.net
>>>> Talend - http://wwx.talend.com
>>>>
>>>> ----- Reply message -----
>>>> From: "Christian Schneider (JIRA)"<ji...@apache.org>
>>>> To:<jb...@apache.org>
>>>> Subject: [jira] [Commented] (KARAF-647) Support of sub-shell
>>>> Date: Tue, May 22, 2012 12:14 pm
>>>>
>>>>
>>>>
>>>>      [
>>>> https://issues.apache.org/jira/browse/KARAF-647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13280861#comment-13280861
>>>> ]
>>>>
>>>> Christian Schneider commented on KARAF-647:
>>>> -------------------------------------------
>>>>
>>>> I just reviewed the prototype. What I don´t like is the auto generation of
>>>> commands to enter the subshells.
>>>> I would prefer to have a single command like cd<subshellname>    to enter
>>>> subshells. This is much simpler
>>>> to implement and allows even better completion as the completion then will
>>>> only show scopes.
>>>>
>>>> It also allows to extend the concept to the resource model I proposed
>>>> above as we have more freedom what to do when cd is called then
>>>> having single sommands for each subshell.
>>>>
>>>>> 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é
>>>>>             Assignee: 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
>>>>
>>>>
>>>
>>> --
>>> Christian Schneider
>>> http://www.liquid-reality.de
>>>
>>> Open Source Architect
>>> Talend Application Integration Division http://www.talend.com
>>>
>>
>>
>> --
>> ------------------------
>> Guillaume Nodet
>> ------------------------
>> Blog: http://gnodet.blogspot.com/
>> ------------------------
>> FuseSource, Integration everywhere
>> http://fusesource.com
>
>


-- 
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
Talend Application Integration Division http://www.talend.com


Re: [jira] [Commented] (KARAF-647) Support of sub-shell

Posted by Guillaume Nodet <gn...@gmail.com>.
I've seen a couple of problems in trunk with subshells:

karaf@root()> instance
karaf@root(instance)> list

that one executes bundle:list instead of instance:list.  I suppose the
scope is not correctly updated.

karaf@root()> admin:connect foo

this one fails because ssh is not the command anymore, but rather the
shell.  I guess it can easily be fixed by using ssh:ssh instead.

On Tue, May 22, 2012 at 2:11 PM, Guillaume Nodet <gn...@gmail.com> wrote:
> The help command does that afaik.  I'd keep the real completion for
> everything, not only for subshells.
>
> On Tue, May 22, 2012 at 2:07 PM, Christian Schneider
> <ch...@die-schneider.net> wrote:
>> I understand but I still think a cd command could help. At the very least it
>> would allow command completion for subshells.
>> Currently if you want a hint which subshell to choose you can only type tab
>> which shows 242 commands.
>>
>> With cd <tab> you would see only the subshells which should be around 10
>> which would give the user a much better overview.
>>
>> So an idea would be to add the cd command without removing the geneated
>> subshell commands.
>>
>> Btw. I think we could also improve the completion list shown by simply
>> typing <tab>. If we only show the scope of commands with scope that would
>> make the list a lot smaller.
>> When you then type the whole scope we could show the commands in the scope.
>>
>> Christian
>>
>> Am 22.05.2012 13:21, schrieb jb@nanthrax.net:
>>
>>> As reminder, the purpose is to have IoS like shell console. That's why we
>>> don't have cd command.
>>>
>>> --
>>> Jean-Baptiste Onofré
>>> jbonofre@apache.org
>>> http://blog.nanthrax.net
>>> Talend - http://wwx.talend.com
>>>
>>> ----- Reply message -----
>>> From: "Christian Schneider (JIRA)"<ji...@apache.org>
>>> To:<jb...@apache.org>
>>> Subject: [jira] [Commented] (KARAF-647) Support of sub-shell
>>> Date: Tue, May 22, 2012 12:14 pm
>>>
>>>
>>>
>>>     [
>>> https://issues.apache.org/jira/browse/KARAF-647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13280861#comment-13280861
>>> ]
>>>
>>> Christian Schneider commented on KARAF-647:
>>> -------------------------------------------
>>>
>>> I just reviewed the prototype. What I don´t like is the auto generation of
>>> commands to enter the subshells.
>>> I would prefer to have a single command like cd<subshellname>  to enter
>>> subshells. This is much simpler
>>> to implement and allows even better completion as the completion then will
>>> only show scopes.
>>>
>>> It also allows to extend the concept to the resource model I proposed
>>> above as we have more freedom what to do when cd is called then
>>> having single sommands for each subshell.
>>>
>>>> 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é
>>>>            Assignee: 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
>>>
>>>
>>
>>
>> --
>> Christian Schneider
>> http://www.liquid-reality.de
>>
>> Open Source Architect
>> Talend Application Integration Division http://www.talend.com
>>
>
>
>
> --
> ------------------------
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> ------------------------
> FuseSource, Integration everywhere
> http://fusesource.com



-- 
------------------------
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
FuseSource, Integration everywhere
http://fusesource.com

Re: [jira] [Commented] (KARAF-647) Support of sub-shell

Posted by Guillaume Nodet <gn...@gmail.com>.
The help command does that afaik.  I'd keep the real completion for
everything, not only for subshells.

On Tue, May 22, 2012 at 2:07 PM, Christian Schneider
<ch...@die-schneider.net> wrote:
> I understand but I still think a cd command could help. At the very least it
> would allow command completion for subshells.
> Currently if you want a hint which subshell to choose you can only type tab
> which shows 242 commands.
>
> With cd <tab> you would see only the subshells which should be around 10
> which would give the user a much better overview.
>
> So an idea would be to add the cd command without removing the geneated
> subshell commands.
>
> Btw. I think we could also improve the completion list shown by simply
> typing <tab>. If we only show the scope of commands with scope that would
> make the list a lot smaller.
> When you then type the whole scope we could show the commands in the scope.
>
> Christian
>
> Am 22.05.2012 13:21, schrieb jb@nanthrax.net:
>
>> As reminder, the purpose is to have IoS like shell console. That's why we
>> don't have cd command.
>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org
>> http://blog.nanthrax.net
>> Talend - http://wwx.talend.com
>>
>> ----- Reply message -----
>> From: "Christian Schneider (JIRA)"<ji...@apache.org>
>> To:<jb...@apache.org>
>> Subject: [jira] [Commented] (KARAF-647) Support of sub-shell
>> Date: Tue, May 22, 2012 12:14 pm
>>
>>
>>
>>     [
>> https://issues.apache.org/jira/browse/KARAF-647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13280861#comment-13280861
>> ]
>>
>> Christian Schneider commented on KARAF-647:
>> -------------------------------------------
>>
>> I just reviewed the prototype. What I don´t like is the auto generation of
>> commands to enter the subshells.
>> I would prefer to have a single command like cd<subshellname>  to enter
>> subshells. This is much simpler
>> to implement and allows even better completion as the completion then will
>> only show scopes.
>>
>> It also allows to extend the concept to the resource model I proposed
>> above as we have more freedom what to do when cd is called then
>> having single sommands for each subshell.
>>
>>> 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é
>>>            Assignee: 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
>>
>>
>
>
> --
> Christian Schneider
> http://www.liquid-reality.de
>
> Open Source Architect
> Talend Application Integration Division http://www.talend.com
>



-- 
------------------------
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
FuseSource, Integration everywhere
http://fusesource.com

Re: [jira] [Commented] (KARAF-647) Support of sub-shell

Posted by Christian Schneider <ch...@die-schneider.net>.
I understand but I still think a cd command could help. At the very 
least it would allow command completion for subshells.
Currently if you want a hint which subshell to choose you can only type 
tab which shows 242 commands.

With cd <tab> you would see only the subshells which should be around 10 
which would give the user a much better overview.

So an idea would be to add the cd command without removing the geneated 
subshell commands.

Btw. I think we could also improve the completion list shown by simply 
typing <tab>. If we only show the scope of commands with scope that 
would make the list a lot smaller.
When you then type the whole scope we could show the commands in the scope.

Christian

Am 22.05.2012 13:21, schrieb jb@nanthrax.net:
> As reminder, the purpose is to have IoS like shell console. That's why we don't have cd command.
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://wwx.talend.com
>
> ----- Reply message -----
> From: "Christian Schneider (JIRA)"<ji...@apache.org>
> To:<jb...@apache.org>
> Subject: [jira] [Commented] (KARAF-647) Support of sub-shell
> Date: Tue, May 22, 2012 12:14 pm
>
>
>
>      [ https://issues.apache.org/jira/browse/KARAF-647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13280861#comment-13280861 ]
>
> Christian Schneider commented on KARAF-647:
> -------------------------------------------
>
> I just reviewed the prototype. What I don´t like is the auto generation of commands to enter the subshells.
> I would prefer to have a single command like cd<subshellname>  to enter subshells. This is much simpler
> to implement and allows even better completion as the completion then will only show scopes.
>
> It also allows to extend the concept to the resource model I proposed above as we have more freedom what to do when cd is called then
> having single sommands for each subshell.
>
>> 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é
>>             Assignee: 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
>
>


-- 
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
Talend Application Integration Division http://www.talend.com