vfox 2026.5.11

Interface to vfox plugins
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
--- Returns download information for a specific Redis version
--- @param ctx table Context object with version field
--- @return table Download info with version, url, and optional note
function PLUGIN:PreInstall(ctx)
    local version = ctx.version

    return {
        version = version,
        url = "https://download.redis.io/releases/redis-" .. version .. ".tar.gz",
        note = "Downloading Redis " .. version .. " source...",
    }
end