We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
open
1 parent 7af0e8b commit 0301da3Copy full SHA for 0301da3
1 file changed
hooks/available.lua
@@ -5,10 +5,10 @@ local shortname = require("shortname")
5
--- @param ctx table Empty table used as context, for future extension
6
--- @return table Descriptions of available versions and accompanying tool descriptions
7
function PLUGIN:Available(ctx)
8
- local distribution = ctx.args[1]
+ local distribution = ctx.args[1] or "open"
9
local jdks = {}
10
11
- if distribution and distribution == "all" then
+ if distribution == "all" then
12
for short, dist in pairs(shortname) do
13
local tempJdks = foojay.fetchtJdkList(dist, "")
14
for _, jdk in ipairs(tempJdks) do
0 commit comments