Comparison

prosodyctl @ 10125:58fe5cff5ca2

prosodyctl: Renamed the command function 'test' to 'enabled_plugins', which now only shows the plugins, in a list
author João Duarte <jvsDuarte08@gmail.com>
date Fri, 07 Jun 2019 13:09:01 +0100
parent 10124:5a3611218709
child 10126:ad640c2e072e
comparison
equal deleted inserted replaced
10124:5a3611218709 10125:58fe5cff5ca2
83 local prosodyctl_timeout = (configmanager.get("*", "prosodyctl_timeout") or 5) * 2; 83 local prosodyctl_timeout = (configmanager.get("*", "prosodyctl_timeout") or 5) * 2;
84 ----------------------- 84 -----------------------
85 local commands = {}; 85 local commands = {};
86 local command = table.remove(arg, 1); 86 local command = table.remove(arg, 1);
87 87
88 function commands.test() 88 function commands.enabled_plugins()
89 show_message [[Well, hello there!]] 89 for module in modulemanager.get_modules_for_host() do
90 show_warning("Trying to peek at the plugin directory: '%s'", modulemanager.get_modules_for_host()) 90 show_warning("%s", module)
91 end
91 end 92 end
92 93
93 function commands.local_plugins() 94 function commands.local_plugins()
94 local directory = "./plugins" 95 local directory = "./plugins"
95 local i, t, popen = 0, {}, io.popen 96 local i, t, popen = 0, {}, io.popen