Software /
code /
prosody
Diff
prosodyctl @ 11294:a1939b261f67
prosodyctl: Move UI related calls out of util.prosodyctl
I think this follows the general separation of duties between prosodyctl
and util.prosodyctl better.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 21 Jan 2021 19:04:57 +0100 |
parent | 11293:cd27ac5e5afe |
child | 11295:50ea7d9143ad |
line wrap: on
line diff
--- a/prosodyctl Thu Jan 21 19:02:03 2021 +0100 +++ b/prosodyctl Thu Jan 21 19:04:57 2021 +0100 @@ -78,8 +78,12 @@ 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 @@ 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