vfox 2026.5.11

Interface to vfox plugins
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- Returns all available versions of bfs from GitHub tags
--- @param ctx table Context object (unused for this plugin)
--- @return table Array of version objects with 'version' field
function PLUGIN:Available(ctx)
    local util = require("util")
    local versions = util.get_versions()

    -- Sort versions (newest first)
    table.sort(versions, util.version_compare)

    -- Convert to vfox format
    local result = {}
    for _, v in ipairs(versions) do
        table.insert(result, { version = v })
    end

    return result
end