Return-Path: X-Original-To: apmail-karaf-dev-archive@minotaur.apache.org Delivered-To: apmail-karaf-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C0AF9CE3D for ; Wed, 23 May 2012 12:30:02 +0000 (UTC) Received: (qmail 33045 invoked by uid 500); 23 May 2012 12:30:02 -0000 Delivered-To: apmail-karaf-dev-archive@karaf.apache.org Received: (qmail 32903 invoked by uid 500); 23 May 2012 12:30:01 -0000 Mailing-List: contact dev-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list dev@karaf.apache.org Received: (qmail 32878 invoked by uid 99); 23 May 2012 12:30:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 May 2012 12:30:00 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gnodet@gmail.com designates 209.85.210.48 as permitted sender) Received: from [209.85.210.48] (HELO mail-pz0-f48.google.com) (209.85.210.48) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 May 2012 12:29:55 +0000 Received: by dadz8 with SMTP id z8so11710061dad.21 for ; Wed, 23 May 2012 05:29:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=3VVPKRolUo4HijysSMmvbi0nsAabkbap9mVArvVaXx8=; b=kLsLqtNpSiUFf4Iv6DrtEUvui1MxtOyHs8TkEl+9MLW7BM6brmyFFVyhJzVYlhxano E9LEpYCZwBTLeNScxNxeFr5racOiPKMsmm1yQU8ZapNC+6qfyUMr4nXoeORN0O9pA0Aa pkGMW8mbRCHN/yycOQzTv3LUWFzQLzKrj9Vv2fzMrahVzQBX8T2SFzi4I795V6IonD0J lBy9spU7nQkBZjYQU2IoNNGy44fVlVkEnXpiOXwGVqc2rS0+ZIsDeGYdO2aCjhpZTScY 7k4CK54UH4IlVHtDgjXEhV9/vWysRMv0VFcbGejMFZhArdmPr5+QU5CCWKU4y8D9hRO+ Zrrg== MIME-Version: 1.0 Received: by 10.68.223.35 with SMTP id qr3mr10363173pbc.83.1337776170115; Wed, 23 May 2012 05:29:30 -0700 (PDT) Received: by 10.142.79.20 with HTTP; Wed, 23 May 2012 05:29:29 -0700 (PDT) In-Reply-To: References: <20120522112219.BF94EF76@athena.apache.org> <4FBB819A.4020309@die-schneider.net> Date: Wed, 23 May 2012 14:29:29 +0200 Message-ID: Subject: Re: [jira] [Commented] (KARAF-647) Support of sub-shell From: Guillaume Nodet To: dev@karaf.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 wrote: > The help command does that afaik. =A0I'd keep the real completion for > everything, not only for subshells. > > On Tue, May 22, 2012 at 2:07 PM, Christian Schneider > wrote: >> I understand but I still think a cd command could help. At the very leas= t 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 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 . If we only show the scope of commands with scope that woul= d >> make the list a lot smaller. >> When you then type the whole scope we could show the commands in the sco= pe. >> >> 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=E9 >>> jbonofre@apache.org >>> http://blog.nanthrax.net >>> Talend - http://wwx.talend.com >>> >>> ----- Reply message ----- >>> From: "Christian Schneider (JIRA)" >>> To: >>> Subject: [jira] [Commented] (KARAF-647) Support of sub-shell >>> Date: Tue, May 22, 2012 12:14 pm >>> >>> >>> >>> =A0 =A0 [ >>> https://issues.apache.org/jira/browse/KARAF-647?page=3Dcom.atlassian.ji= ra.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1328086= 1#comment-13280861 >>> ] >>> >>> Christian Schneider commented on KARAF-647: >>> ------------------------------------------- >>> >>> I just reviewed the prototype. What I don=B4t like is the auto generati= on of >>> commands to enter the subshells. >>> I would prefer to have a single command like cd =A0to ent= er >>> subshells. This is much simpler >>> to implement and allows even better completion as the completion then w= ill >>> 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 >>>> -------------------- >>>> >>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Key: KARAF-647 >>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 URL: https://issues.apache.org/jira/br= owse/KARAF-647 >>>> =A0 =A0 =A0 =A0 =A0 =A0 Project: Karaf >>>> =A0 =A0 =A0 =A0 =A0Issue Type: New Feature >>>> =A0 =A0 =A0 =A0 =A0Components: karaf-shell >>>> =A0 =A0 =A0 =A0 =A0 =A0Reporter: Jean-Baptiste Onofr=E9 >>>> =A0 =A0 =A0 =A0 =A0 =A0Assignee: Jean-Baptiste Onofr=E9 >>>> =A0 =A0 =A0 =A0 =A0 =A0 Fix For: 3.0.0 >>>> >>>> >>>> Thanks the high Karaf adoption level, we have projects that provide Ka= raf >>>> 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> =A0camel >>>> karaf@root:camel> =A0route:list >>>> karaf@root:camel> =A0route:stop >>>> karaf@root:camel> =A0exit >>>> karaf@root> =A0ace >>>> karaf@root:ace> =A0distribution:list >>>> karaf@root:ace> =A0exit >>> >>> -- >>> 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.jsp= a >>> For more information on JIRA, see: http://www.atlassian.com/software/ji= ra >>> >>> >> >> >> -- >> 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 --=20 ------------------------ Guillaume Nodet ------------------------ Blog: http://gnodet.blogspot.com/ ------------------------ FuseSource, Integration everywhere http://fusesource.com