Software / code / prosody
Comparison
prosodyctl @ 11135:56490ffde93f
util.prosodyctl: Get Luarocks server from config
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Mon, 05 Oct 2020 21:24:14 +0200 |
| parent | 11134:3e3f22043552 |
| child | 11247:4e803e80d7b1 |
comparison
equal
deleted
inserted
replaced
| 11134:3e3f22043552 | 11135:56490ffde93f |
|---|---|
| 76 function commands.install(arg) | 76 function commands.install(arg) |
| 77 if arg[1] == "--help" then | 77 if arg[1] == "--help" then |
| 78 show_usage([[install]], [[Installs a prosody/luarocks plugin]]); | 78 show_usage([[install]], [[Installs a prosody/luarocks plugin]]); |
| 79 return 1; | 79 return 1; |
| 80 end | 80 end |
| 81 call_luarocks("install", arg[1], "http://localhost/"); | 81 -- TODO finalize config option name |
| 82 call_luarocks("install", arg[1], configmanager.get("*", "plugin_server") or "http://localhost/"); | |
| 82 end | 83 end |
| 83 | 84 |
| 84 function commands.remove(arg) | 85 function commands.remove(arg) |
| 85 if arg[1] == "--help" then | 86 if arg[1] == "--help" then |
| 86 show_usage([[remove]], [[Removes a module installed in the working directory's plugins folder]]); | 87 show_usage([[remove]], [[Removes a module installed in the working directory's plugins folder]]); |