berrybrew, the Perlbrew for Windows, updated to v1.15
I've released berrybrew version 1.15.
All of the credit for this update goes to PETERCJ who went far above and beyond with this PR. It's a pleasure to have him contributing to this (or any) project.
The significant change here is the addition of the use command. I feel that this addition adds tremendous value to the software, and makes it much easier to use.
This allows you to temporarily switch to one of your other installed Perl instances either in the same command window or new ones without switching your currently switched to one. Here are some examples:
Temporarily use a different installed version, in the same window. Typing exit
will return you to your previous environment within the same window:
c:\>berrybrew use 5.10.1_32
Perl-5.10.1_32
==============
Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. All rights reserved.
<berrybrew use 5.10.1_32>: run "exit" leave this environment
c:\>
Calling exit
returns you to your previous environment within the same CLI window.
You can also use
multiple versions within the same window. Using this method will cascade the instances:
c:\>berrybrew use 5.10.1_32,5.8.9_32
Perl-5.10.1_32
==============
Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. All rights reserved.
<berrybrew use 5.10.1_32>: run "exit" leave this environment
c:\>exit
Exiting <berrybrew use 5.10.1_32>
Perl-5.8.9_32
==============
Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. All rights reserved.
<berrybrew use 5.8.9_32>: run "exit" leave this environment
c:\>exit
Exiting <berrybrew use 5.8.9_32>
c:\>
Let's actually pop up a couple of new windows instead of using the one you're currently using:
c:\>berrybrew use --win 5.8.9_32,5.10.1_32
berrybrew use 5.8.9_32: spawned in new command window
berrybrew use 5.10.1_32: spawned in new command window
c:\>
# first new window
<berrybrew use Perl-5.8.9_32>
c:\>
# second new window
<berrybrew use Perl-5.10.1_32>
c:\>
I can't exactly show you the output without a screenshot, but I'm sure you get the gist. You can continue working in your main window, but execute things in the other two who have the respective version of Perl loaded and ready to go.
Because I took over maintainership of David Farrell's berrybrew repository when I first took over the project, it has been brought up to v1.15 as well.
Peter, I can't thank you enough for all of the hard work you've put into this. I mean, not just the new feature, but cleaning up erroneous whitespace, completely enhancing the whole test framework, updating the docs and meticulously adding tests while fully and completely explaining everything clearly. Cheers!
Leave a comment