aboutsummaryrefslogtreecommitdiffstats
path: root/prosodyctl
diff options
context:
space:
mode:
Diffstat (limited to 'prosodyctl')
-rwxr-xr-xprosodyctl9
1 files changed, 9 insertions, 0 deletions
diff --git a/prosodyctl b/prosodyctl
index 6e19170d..9bdc86a2 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -486,6 +486,15 @@ function commands.version(arg)
print("Prosody "..(prosody.version or "(unknown version)"));
end
+function commands.lua_paths()
+ local function shell_escape(s)
+ return "'" .. tostring(s):gsub("'",[['\'']]) .. "'";
+ end
+
+ print("LUA_PATH="..shell_escape(package.path));
+ print("LUA_CPATH="..shell_escape(package.cpath));
+end
+
function commands.reload(arg)
local opts = parse_args(arg, only_help);
if opts.help then