# HG changeset patch # User Kim Alvefur # Date 1594344542 -7200 # Node ID d175de07dd73d4dd660fdd3e31320a3c9a7d5de7 # Parent c82ede8892fc9a0337e4b923652a1d9a4fdc7db8 prosodyctl about: Substitute better names for some Lua modules E.g. 'lxp' isn't that easy to guess that it's LuaExpat diff -r c82ede8892fc -r d175de07dd73 prosodyctl --- a/prosodyctl Fri Jul 10 03:23:10 2020 +0200 +++ b/prosodyctl Fri Jul 10 03:29:02 2020 +0200 @@ -441,10 +441,19 @@ local library_versions = {}; dependencies.softreq"ssl"; dependencies.softreq"DBI"; + local friendly_names = { + DBI = "LuaDBI"; + lfs = "LuaFileSystem"; + lunbound = "luaunbound"; + lxp = "LuaExpat"; + socket = "LuaSocket"; + ssl = "LuaSec"; + }; local lunbound = dependencies.softreq"lunbound"; for name, module in pairs(package.loaded) do if type(module) == "table" and rawget(module, "_VERSION") - and name ~= "_G" and not name:match("%.") then + and name ~= "_G" and not name:match("%.") then + name = friendly_names[name] or name; if #name > longest_name then longest_name = #name; end