Re: table printer for Karaf commands

2012-04-05 Thread Reuben Garrett
you're right, Christian - the table implementation is simple enough that a full-blown service might be excessive for my immediate needs. moreover, importing packages is already a kind of service consumption. for better or worse, i might have gotten carried away with my enthusiasm for OSGi. all t

Re: table printer for Karaf commands

2012-04-05 Thread Christian Schneider
I think it would make sense to user the karaf.util project for that. Currently we just inline it into projects but we could also make it a bundle. We could move the table functionality and other general tools there. Christian Am 05.04.2012 19:32, schrieb Claus Ibsen: Well I am talking about a

Re: table printer for Karaf commands

2012-04-05 Thread Jean-Baptiste Onofré
It makes sense, and I'm not against at all from a technical perspective (see my e-mail replied to Ioannis). Regards JB On 04/05/2012 07:32 PM, Claus Ibsen wrote: Well I am talking about an end user library which has utility methods so people can use that in their Karaf commands / plugins. The

Re: table printer for Karaf commands

2012-04-05 Thread Jean-Baptiste Onofré
For 2.3.x, I'm fully agree and it's the purpose. Really, don't get me wrong, I have no problem to merge that in Karaf 2.2.x. It's just that it could be a good message for the users in order to say: "hey guys, look what it's cool in Karaf 3.0.0" ;) Regards JB On 04/05/2012 07:31 PM, Ioannis C

Re: table printer for Karaf commands

2012-04-05 Thread Claus Ibsen
Well I am talking about an end user library which has utility methods so people can use that in their Karaf commands / plugins. The irony is that Karaf is all about modularity. So would it not be possible to offer a neutral Karaf library that people can use on both 2.x and 3.0. I assume the table

Re: table printer for Karaf commands

2012-04-05 Thread Ioannis Canellos
True, but releasing 3.0.0 should not block us from delivering functionality to 2.2.x or even 2.3.x. -- *Ioannis Canellos* * FuseSource ** Blog: http://iocanel.blogspot.com ** Twitter: iocanel *

Re: table printer for Karaf commands

2012-04-05 Thread Jean-Baptiste Onofré
Hi Claus, From a feature perspective, of course it's cool ;) But more we merge new feature on Karaf 2.2.x, more we postpone Karaf 3.0.0, as users won't update to Karaf 3.0.0. From a technical perspective, I'm fully agree with you, table rendering is interesting (whatever the Karaf version is

Re: table printer for Karaf commands

2012-04-05 Thread Claus Ibsen
On Thu, Apr 5, 2012 at 5:27 PM, Jean-Baptiste Onofré wrote: > Hi Reuben, > > We have an implementation of the console table available. > > You can take a look: > > ./shell/console/src/main/java/org/apache/karaf/shell/console/table > > but it's only available on trunk for now (so in the next Karaf

Re: table printer for Karaf commands

2012-04-05 Thread Christian Schneider
If you like you can use the table impl JB mentioned to make some of the 3.0.0 tables prettier. For reference you can look at the package/command module where the new table is already used. Christian Am 05.04.2012 17:14, schrieb Reuben Garrett: i'm working on patching Camel's Karaf commands

Re: table printer for Karaf commands

2012-04-05 Thread Jean-Baptiste Onofré
Hi Reuben, We have an implementation of the console table available. You can take a look: ./shell/console/src/main/java/org/apache/karaf/shell/console/table but it's only available on trunk for now (so in the next Karaf 3.0.0). I don't think it's a good idea to merge on Karaf 2.2.x, as we dec

table printer for Karaf commands

2012-04-05 Thread Reuben Garrett
i'm working on patching Camel's Karaf commands to print more nicely (columns aligned regardless of a field's length) [1]. unfortunately, my first attempt's implementation was a little too heavy, and would benefit from code reuse. i recently observed a JIRA [2] which suggests that Karaf may have b