diff options
author | Kim Alvefur <zash@zash.se> | 2021-01-21 19:04:57 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-01-21 19:04:57 +0100 |
commit | bd62b3bce705d2672dd32ac72f4717cf215dbd29 (patch) | |
tree | edea934b011a6ae83e541ebac17b08564121c632 /prosodyctl | |
parent | 07e3f4ace874a1dfe9d0d8612a69fd0f9ec7d972 (diff) | |
download | prosody-bd62b3bce705d2672dd32ac72f4717cf215dbd29.tar.gz prosody-bd62b3bce705d2672dd32ac72f4717cf215dbd29.zip |
prosodyctl: Move UI related calls out of util.prosodyctl
I think this follows the general separation of duties between prosodyctl
and util.prosodyctl better.
Diffstat (limited to 'prosodyctl')
-rwxr-xr-x | prosodyctl | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -78,8 +78,12 @@ function commands.install(arg) show_usage([[install]], [[Installs a prosody/luarocks plugin]]); return 1; end + show_message("Installing %s in %s", arg[1], prosody.paths.installer); -- TODO finalize config option name local ret = call_luarocks("install", arg[1], configmanager.get("*", "plugin_server") or "http://localhost/"); + if ret == 0 and operation == "install" then + show_module_configuration_help(mod); + end return ret; end @@ -88,6 +92,7 @@ function commands.remove(arg) show_usage([[remove]], [[Removes a module installed in the working directory's plugins folder]]); return 1; end + show_message("Removing %s from %s", arg[1], prosody.paths.installer); local ret = call_luarocks("remove", arg[1]); return ret; end |