Software /
code /
prosody
Changeset
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 |
parents | 10124:5a3611218709 |
children | 10126:ad640c2e072e |
files | prosodyctl |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/prosodyctl Fri Jun 07 13:00:40 2019 +0100 +++ b/prosodyctl Fri Jun 07 13:09:01 2019 +0100 @@ -85,9 +85,10 @@ local commands = {}; local command = table.remove(arg, 1); -function commands.test() - show_message [[Well, hello there!]] - show_warning("Trying to peek at the plugin directory: '%s'", modulemanager.get_modules_for_host()) +function commands.enabled_plugins() + for module in modulemanager.get_modules_for_host() do + show_warning("%s", module) + end end function commands.local_plugins()