Also +1 for making aliases optional and activate them via a command. Kind regards, Andreas
On Wed, Oct 3, 2012 at 7:01 AM, Jean-Baptiste Onofré <[email protected]> wrote: > +1, I discussed quickly about that with Guillaume yesterday, and if we have > a function which provide the aliases "on-demand", it's better IMHO. > > Regards > JB > > > On 10/02/2012 02:01 PM, Jamie G. wrote: >> >> +1, and yes the aliases are backwards - karaf 3 should support old >> namings. >> >> On Tue, Oct 2, 2012 at 9:24 AM, Guillaume Nodet <[email protected]> wrote: >>> >>> If we add a method to add all those aliases, it's easy to document and it >>> still provides compatibility for code snippets. It's not very difficult >>> to >>> add a warning "For karaf 2.x users, make sure you call enable-3x-aliases >>> before running those scripts". >>> I think it would really make the user experience better, as the whole >>> goal >>> of completion is screwed in 2.x, which is what all our users use daily. >>> >>> Btw, releasing 2.3.x with aliases to commands in 3.0.x which hasn't been >>> released is not really a good idea in theory, since 3.0.x could still >>> change. >>> In fact, I think aliases should be the opposite. We should have added >>> backward compatible aliases in 3.0.x instead of adding forward compatible >>> aliases in 2.x. That's usually how compatibility is done. >>> >>> On Tue, Oct 2, 2012 at 1:08 PM, Christian Schneider >>> <[email protected] >>>> >>>> wrote: >>> >>> >>>> I think we should keep the aliases. The reason is that with the aliases >>>> we >>>> can describe commands for 2.x and 3.x in the same way. (For example in >>>> tutorials). >>>> So people starting with a fresh karaf can see the same behaviour for 2.x >>>> like for 3.x. >>>> >>>> Instead I propose to provide a way to switch the aliases off. This >>>> allows >>>> advanced users to switch the aliases off if they dont want them. >>>> >>>> Christian >>>> >>>> >>>> On 10/02/2012 10:26 AM, Guillaume Nodet wrote: >>>> >>>>> I want to start this discussion because I really find the aliases >>>>> annoying. >>>>> In karaf 2.2.x, we added a few aliases for bundle:xx, package:xx and >>>>> feature:xx commands and we are adding more into 2.3.x >>>>> I dislike them because they break the whole completion system we have. >>>>> If you type bun<tab>, it will complete to bundle and then stop because >>>>> we >>>>> have bundle:xx and bundles:xx commands. >>>>> If you then hit ':' as proposed, the command completion is not >>>>> available >>>>> anymore because the completion system can't know about aliases >>>>> arguments >>>>> (aliases are just functions, and no metadata is available for those). >>>>> >>>>> So I'd like to disable aliases by default, and instead, define a single >>>>> function that could be called from the shell, or by default in >>>>> etc/shell.init.script, that would enable all the aliases. >>>>> So users could call this function (let's call it 'enable-3x-aliases') >>>>> and >>>>> that would register all the aliases instead of having them enabled by >>>>> default. >>>>> >>>>> Thoughts ? >>>>> >>>>> >>>> >>> >>> >>> -- >>> ------------------------ >>> Guillaume Nodet >>> ------------------------ >>> Blog: http://gnodet.blogspot.com/ >>> ------------------------ >>> FuseSource, Integration everywhere >>> http://fusesource.com > > > -- > Jean-Baptiste Onofré > [email protected] > http://blog.nanthrax.net > Talend - http://www.talend.com
