@@ -18,7 +18,7 @@ param (
18
18
"jenv use <name>" Applys the given Java-Version locally for the current shell
19
19
"jenv local <name>" Will use the given Java-Version whenever in this folder. Will set the Java-version for all subfolders as well
20
20
#>
21
- [Parameter (Position = 0 )][validateset (" list" , " add" , " change" , " use" , " remove" , " local" , " getjava" )] [string ]$action ,
21
+ [Parameter (Position = 0 )][validateset (" list" , " add" , " change" , " use" , " remove" , " local" , " getjava" , " link " )] [string ]$action ,
22
22
23
23
# Displays this helpful message
24
24
[Alias (" h" )]
@@ -39,6 +39,7 @@ Import-Module $PSScriptRoot\jenv-change.psm1 -Force
39
39
Import-Module $PSScriptRoot \jenv- use.psm1 - Force
40
40
Import-Module $PSScriptRoot \jenv- local.psm1 - Force
41
41
Import-Module $PSScriptRoot \jenv- getjava.psm1 - Force
42
+ Import-Module $PSScriptRoot \jenv- link.psm1 - Force
42
43
# endregion
43
44
44
45
# region Installation
@@ -122,6 +123,7 @@ if ($help -and $action -eq "") {
122
123
Write-Host ' "jenv change <name>" Applys the given Java-Version globaly for all restarted shells and this one'
123
124
Write-Host ' "jenv use <name>" Applys the given Java-Version locally for the current shell'
124
125
Write-Host ' "jenv local <name>" Will use the given Java-Version whenever in this folder. Will set the Java-version for all subfolders as well'
126
+ Write-Host ' "jenv link <executable>" Creates shortcuts for executables inside JAVA_HOME. For example "javac"'
125
127
Write-Host ' Get help for individual commands using "jenv <list/add/remove/change/use/local> --help"'
126
128
}
127
129
else {
@@ -136,6 +138,7 @@ else {
136
138
change { Invoke-Change $config $help $output @arguments }
137
139
local { Invoke-Local $config $help $output @arguments }
138
140
getjava { Get-Java $config }
141
+ link { Invoke-Link $config $help @arguments }
139
142
}
140
143
141
144
# region Save the config
0 commit comments