Skip to content

Commit 9469f37

Browse files
committed
Update to perlbot from strawberryperl.com. add changes log. add version command
1 parent 3245144 commit 9469f37

File tree

3 files changed

+40
-1
lines changed

3 files changed

+40
-1
lines changed

Changes

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Changes log for PSPerl
2+
3+
0.1.0 2020-06-29
4+
* Switch to https://strawberry.perl.bot/releases.json
5+
- Gets us HTTPS, and it's faster than strawberryperl.com
6+
* Add a -Version or -V command to show version information
7+
* Begin some structure for creating a -Local or -Lib command
8+
to deal with local::lib
9+
* Get some tags/releases back-filled
10+
* Added the Changes log
11+
12+
0.0.2 2020-04-30
13+
* Store the current version we're running in the environment
14+
* Fix for non-English Windows installs (thanks xenu)
15+
* Fix for error handling (thanks xenu)
16+
17+
0.0.1 2020-03-18
18+
* Initial Release:
19+
* psperl -Available
20+
* psperl -Init
21+
* psperl -List
22+
* psperl -Install
23+
* psperl -Use
24+
* psperl -Switch

psperl.ps1

+15
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ param (
44
[switch]$init = $false,
55
[switch]$setup = $false,
66
[switch]$list = $false,
7+
[switch]$version = $false,
8+
[switch]$v = $false,
79
[string]$install = '',
810
[string]$switch = '',
911
[string]$use = '',
@@ -17,6 +19,7 @@ if ($PSVersionTable.PSVersion.Major -lt 5) {
1719
}
1820
$psperl_path = (Split-Path -parent $MyInvocation.MyCommand.Definition);
1921
$env:PSPERL_ROOT = $psperl_path;
22+
$env:PSPERL_VERSION = '0.1.0';
2023

2124
# Import our classes
2225
. "$($psperl_path)\src\PSPerl.ps1";
@@ -116,6 +119,18 @@ elseif ($list) {
116119
Write-Host(" $($dir.Name)");
117120
}
118121
}
122+
elseif ($version -or $v) {
123+
Write-Host("This is PSPerl v$($env:PSPERL_VERSION)");
124+
Write-Host("");
125+
Write-Host("Directories of note:")
126+
Write-Host("$($env:PSPERL_ROOT)\_config");
127+
Write-Host("$($env:PSPERL_ROOT)\_locals");
128+
Write-Host("$($env:PSPERL_ROOT)\_perls");
129+
Write-Host("$($env:PSPERL_ROOT)\_zips");
130+
Write-Host("");
131+
Write-Host("https://github.com/genio/psperl");
132+
Write-Host("");
133+
}
119134
# To turn on Debugging, $global:DebugPreference = 'Continue'
120135
# To turn off Debugging, $global:DebugPreference = 'SilentlyContinue'
121136

src/PSPerl.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class PSPerl {
99
if(![System.IO.Directory]::Exists($rootPath)) {
1010
throw "Invalid root path provided";
1111
}
12-
$this.URL = 'http://strawberryperl.com/releases.json';
12+
$this.URL = 'https://strawberry.perl.bot/releases.json';
1313
$this.rootPath = $rootPath;
1414
$this.profilePath = $profilePath;
1515
$this.LoadSettings();

0 commit comments

Comments
 (0)