This commit is contained in:
Andrew Haynes
2026-03-30 00:25:15 -04:00
parent 8653df28bc
commit a31c0de871
1727 changed files with 1174181 additions and 94 deletions
@@ -0,0 +1,30 @@
local fsu = require 'fs-utility'
local function loadVersion()
local changelog = fsu.loadFile(ROOT / 'changelog.md')
if not changelog then
return
end
local version, pos = changelog:match '%#%# (%d+%.%d+%.%d+)()'
if not version then
return
end
if not changelog:find('^[\r\n]+`', pos) then
version = version .. '-dev'
end
return version
end
local m = {}
function m.getVersion()
if not m.version then
m.version = loadVersion() or '<Unknown>'
end
return m.version
end
return m