Comparison

prosodyctl @ 8177:f52cdad171b0

prosodyctl: Make `cert check` do the same as `check certs`
author Kim Alvefur <zash@zash.se>
date Thu, 06 Jul 2017 10:41:28 +0200
parent 8144:8e9a36d0c7d1
child 8181:79f73af4c410
child 8190:331caee0c774
comparison
equal deleted inserted replaced
8176:f07cfc9b9b36 8177:f52cdad171b0
932 if arg[1] ~= "--help" and not hosts[arg[1]] then 932 if arg[1] ~= "--help" and not hosts[arg[1]] then
933 show_message(error_messages["no-such-host"]); 933 show_message(error_messages["no-such-host"]);
934 return 1; 934 return 1;
935 end 935 end
936 return cert_commands[subcmd](arg); 936 return cert_commands[subcmd](arg);
937 elseif subcmd == "check" then
938 return commands.check({"certs"});
937 end 939 end
938 end 940 end
939 show_usage("cert config|request|generate|key|import", "Helpers for generating X.509 certificates and keys.") 941 show_usage("cert config|request|generate|key|import", "Helpers for generating X.509 certificates and keys.")
940 for _, cmd in pairs(cert_commands) do 942 for _, cmd in pairs(cert_commands) do
941 print() 943 print()