File tree 3 files changed +40
-1
lines changed
3 files changed +40
-1
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change 4
4
[switch ]$init = $false ,
5
5
[switch ]$setup = $false ,
6
6
[switch ]$list = $false ,
7
+ [switch ]$version = $false ,
8
+ [switch ]$v = $false ,
7
9
[string ]$install = ' ' ,
8
10
[string ]$switch = ' ' ,
9
11
[string ]$use = ' ' ,
@@ -17,6 +19,7 @@ if ($PSVersionTable.PSVersion.Major -lt 5) {
17
19
}
18
20
$psperl_path = (Split-Path - parent $MyInvocation.MyCommand.Definition );
19
21
$env: PSPERL_ROOT = $psperl_path ;
22
+ $env: PSPERL_VERSION = ' 0.1.0' ;
20
23
21
24
# Import our classes
22
25
. " $ ( $psperl_path ) \src\PSPerl.ps1" ;
@@ -116,6 +119,18 @@ elseif ($list) {
116
119
Write-Host (" $ ( $dir.Name ) " );
117
120
}
118
121
}
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
+ }
119
134
# To turn on Debugging, $global:DebugPreference = 'Continue'
120
135
# To turn off Debugging, $global:DebugPreference = 'SilentlyContinue'
121
136
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ class PSPerl {
9
9
if (! [System.IO.Directory ]::Exists($rootPath )) {
10
10
throw " Invalid root path provided" ;
11
11
}
12
- $this.URL = ' http ://strawberryperl.com /releases.json' ;
12
+ $this.URL = ' https ://strawberry.perl.bot /releases.json' ;
13
13
$this.rootPath = $rootPath ;
14
14
$this.profilePath = $profilePath ;
15
15
$this.LoadSettings ();
You can’t perform that action at this time.
0 commit comments