16 May 14:41
Re: [groovy-user] Customizing GroovySh
From: Guillaume Laforge <glaforge@...>
Subject: Re: [groovy-user] Customizing GroovySh
Newsgroups: gmane.comp.lang.groovy.user
Date: 2008-05-16 12:41:41 GMT
Subject: Re: [groovy-user] Customizing GroovySh
Newsgroups: gmane.comp.lang.groovy.user
Date: 2008-05-16 12:41:41 GMT
Hi Benjamin, On Fri, May 16, 2008 at 2:19 PM, Strappazzon <benjamin.strappazzon@...> wrote: > I currently work on a project that aims to develop a shell. > I use groovySh as a base and add my own command. Excellent! In Groovy 1.6-beta-1, I think it's now easier to register your own commands. Have you used that mechanism? Which version do you use? > I already succeed in adding commands in groovysh but, now > what I'd like to do is to customize the prompt and the banner message. > I tried to extends GroovySh to provide my own prompt but the the method that > define it is private. > Is there another solution to customize the prompt and the banner without > modifying groovy source code. Currently, if the method is private, you obviously can't override it. But if you create a JIRA issue with such a request for improvement, it's an easy fix if it's just making the method public! -- -- Guillaume Laforge Groovy Project Manager G2One, Inc. Vice-President Technology http://www.g2one.com --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
RSS Feed