aboutsummaryrefslogtreecommitdiffstats
path: root/prosodyctl
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-07-10 03:29:02 +0200
committerKim Alvefur <zash@zash.se>2020-07-10 03:29:02 +0200
commitc80ef421128f58dcfdce656c90a7d9daa918ae39 (patch)
tree209939a2e037b2fba6a8b6cd2858d1959b33c694 /prosodyctl
parent6e59b775022a6c385ce878898bf08a9def1f363c (diff)
downloadprosody-c80ef421128f58dcfdce656c90a7d9daa918ae39.tar.gz
prosody-c80ef421128f58dcfdce656c90a7d9daa918ae39.zip
prosodyctl about: Substitute better names for some Lua modules
E.g. 'lxp' isn't that easy to guess that it's LuaExpat
Diffstat (limited to 'prosodyctl')
-rwxr-xr-xprosodyctl11
1 files changed, 10 insertions, 1 deletions
diff --git a/prosodyctl b/prosodyctl
index d220355c..27a44ec4 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -441,10 +441,19 @@ function commands.about(arg)
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