aboutsummaryrefslogtreecommitdiffstats
path: root/prosodyctl
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-05-30 12:27:12 +0200
committerKim Alvefur <zash@zash.se>2021-05-30 12:27:12 +0200
commit5d8bae3294f740601092226c7bd36a6176853237 (patch)
tree04d4d0eb6853f6042fcf77d00908a4106a1bafdd /prosodyctl
parent005e93100580f29f888d361977d35eb391e7097d (diff)
downloadprosody-5d8bae3294f740601092226c7bd36a6176853237.tar.gz
prosody-5d8bae3294f740601092226c7bd36a6176853237.zip
prosodyctl: Add 'check' to command listing (fixes #1622)
Along with infrastructure for the other commands that live in external modules.
Diffstat (limited to 'prosodyctl')
-rwxr-xr-xprosodyctl10
1 files changed, 10 insertions, 0 deletions
diff --git a/prosodyctl b/prosodyctl
index 9f62963b..c08c9e7d 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -662,7 +662,14 @@ local command_runner = async.runner(function ()
"start"; "stop"; "restart"; "reload"; "status";
"Informative:",
"about",
+ "check",
};
+ -- These live in util.prosodyctl.$command so we have their short help here.
+ local external_commands = {
+ cert = "Manage certificates",
+ check = "Perform basic checks on your Prosody installation",
+ shell = "Lorem ipsum dolor sit amet", -- FIXME
+ }
local done = {};
@@ -671,6 +678,9 @@ local command_runner = async.runner(function ()
if command_func then
command_func{ "--help" };
done[command_name] = true;
+ elseif external_commands[command_name] then
+ show_usage(command_name, external_commands[command_name]);
+ done[command_name] = true;
else
print""
print(command_name);