Software /
code /
prosody
Comparison
util/prosodyctl.lua @ 11133:624eafed3343
util.prosodyctl: Flip argument order
"verb subject" feels better than "subject verb", especially since the
subject (module) is optional.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 05 Oct 2020 21:17:29 +0200 |
parent | 11132:287d0d80aa57 |
child | 11134:3e3f22043552 |
comparison
equal
deleted
inserted
replaced
11132:287d0d80aa57 | 11133:624eafed3343 |
---|---|
225 end | 225 end |
226 end | 226 end |
227 | 227 |
228 local render_cli = interpolation.new("%b{}", function (s) return "'"..s:gsub("'","'\\''").."'" end) | 228 local render_cli = interpolation.new("%b{}", function (s) return "'"..s:gsub("'","'\\''").."'" end) |
229 | 229 |
230 local function call_luarocks(mod, operation) | 230 local function call_luarocks(operation, mod) |
231 local dir = get_path_custom_plugins(prosody.paths.plugins); | 231 local dir = get_path_custom_plugins(prosody.paths.plugins); |
232 if operation == "install" then | 232 if operation == "install" then |
233 show_message("Installing %s at %s", mod, dir); | 233 show_message("Installing %s at %s", mod, dir); |
234 elseif operation == "remove" then | 234 elseif operation == "remove" then |
235 show_message("Removing %s from %s", mod, dir); | 235 show_message("Removing %s from %s", mod, dir); |