Comparison

util/prosodyctl.lua @ 10136:38775965fcd5

util.prosodyctl: Added help support to 'admin_operation'
author João Duarte <jvsDuarte08@gmail.com>
date Thu, 27 Jun 2019 18:01:36 +0100
parent 10132:b59535964e81
child 10148:263b61d03d70
comparison
equal deleted inserted replaced
10135:3ae2809030dd 10136:38775965fcd5
277 signal.kill(pid, signal.SIGHUP); 277 signal.kill(pid, signal.SIGHUP);
278 return true; 278 return true;
279 end 279 end
280 280
281 local function admin_operation(operation, arg) 281 local function admin_operation(operation, arg)
282 if arg[1] == "--help" then
283 print(" admin-"..operation)
284 print(" "..operation.."plugins from a server (repository)")
285 return 1;
286 end
282 local modules, tree, server, refresh = "", "", "", "" 287 local modules, tree, server, refresh = "", "", "", ""
283 for i, _ in ipairs(arg) do 288 for i, _ in ipairs(arg) do
284 if arg[i]:sub(1, #"--tree=") == "--tree=" then 289 if arg[i]:sub(1, #"--tree=") == "--tree=" then
285 tree = arg[i].." " 290 tree = arg[i].." "
286 elseif arg[i]:sub(1, #"--server=") == "--server=" then 291 elseif arg[i]:sub(1, #"--server=") == "--server=" then