You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Ask user if java.exe should be added to the list
49
50
foreach ($javain$javaExecutables) {
50
51
$version=Get-JavaVersion$java
51
-
switch (Open-Prompt"JEnv autoscan" ("Found java.exe at {0}. Default name is: '{1}'. Do you want to add it to the list?"-f$java,$version) "Yes","No","Rename" ("This will add {0} with alias '{1}' to JEnv"-f$java,$version), ("Skip {0}"-f$java),"Change the default name"1) {
switch (Open-Prompt"JEnv autoscan" ("Found java.exe at {0}. Default name is: '{1}'. Do you want to add it to the list?"-f$java,$version) "Yes","No","Rename" ("This will add {0} with alias '{1}' to JEnv"-f$java,$version), ("Skip {0}"-f$java),"Change the default name"1) {
Write-Host'"jenv list" List all registered Java-Envs.'
125
-
Write-Host'"jenv add <name> <path>" Adds a new Java-Version to JEnv which can be refferenced by the given name'
126
-
Write-Host'"jenv remove <name>" Removes the specified Java-Version from JEnv'
127
-
Write-Host'"jenv change <name>" Applys the given Java-Version globaly for all restarted shells and this one'
128
-
Write-Host'"jenv use <name>" Applys the given Java-Version locally for the current shell'
129
-
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'
130
-
Write-Host'"jenv link <executable>" Creates shortcuts for executables inside JAVA_HOME. For example "javac"'
131
-
Write-Host'"jenv uninstall <name>" Deletes JEnv and restores the specified java version to the system. You may keep your config file'
132
-
Write-Host'"jenv autoscan ?<path>?" Will scan the given path for java installations and ask to add them to JEnv. Path is optional'
128
+
Write-Host'"jenv list" List all registered Java-Envs.'
129
+
Write-Host'"jenv add <name> <path>" Adds a new Java-Version to JEnv which can be refferenced by the given name'
130
+
Write-Host'"jenv remove <name>" Removes the specified Java-Version from JEnv'
131
+
Write-Host'"jenv change <name>" Applys the given Java-Version globaly for all restarted shells and this one'
132
+
Write-Host'"jenv use <name>" Applys the given Java-Version locally for the current shell'
133
+
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'
134
+
Write-Host'"jenv link <executable>" Creates shortcuts for executables inside JAVA_HOME. For example "javac"'
135
+
Write-Host'"jenv uninstall <name>" Deletes JEnv and restores the specified java version to the system. You may keep your config file'
136
+
Write-Host'"jenv autoscan [--yes|-y] ?<path>?" Will scan the given path for java installations and ask to add them to JEnv. Path is optional and "--yes|-y" accepts defaults.'
133
137
Write-Host'Get help for individual commands using "jenv <list/add/remove/change/use/local> --help"'
0 commit comments