Mercurial > prosody-hg
comparison util/prosodyctl.lua @ 11292:ad5cd9b0f8de
util.prosodyctl: Reword message to sound more natural
English is hard. "to" might also work, but we'll go with this for now.
18:32:11 <MattJ> s/at/in/ ?
18:32:19 <MattJ> to match luarocks :)
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 21 Jan 2021 18:50:19 +0100 |
| parents | 9a98464a35e4 |
| children | a1939b261f67 |
comparison
equal
deleted
inserted
replaced
| 11291:9a98464a35e4 | 11292:ad5cd9b0f8de |
|---|---|
| 220 local render_cli = interpolation.new("%b{}", function (s) return "'"..s:gsub("'","'\\''").."'" end) | 220 local render_cli = interpolation.new("%b{}", function (s) return "'"..s:gsub("'","'\\''").."'" end) |
| 221 | 221 |
| 222 local function call_luarocks(operation, mod, server) | 222 local function call_luarocks(operation, mod, server) |
| 223 local dir = prosody.paths.installer; | 223 local dir = prosody.paths.installer; |
| 224 if operation == "install" then | 224 if operation == "install" then |
| 225 show_message("Installing %s at %s", mod, dir); | 225 show_message("Installing %s in %s", mod, dir); |
| 226 elseif operation == "remove" then | 226 elseif operation == "remove" then |
| 227 show_message("Removing %s from %s", mod, dir); | 227 show_message("Removing %s from %s", mod, dir); |
| 228 end | 228 end |
| 229 local ok, where, code = os.execute(render_cli("luarocks {op} --tree={dir} {server&--server={server}} {mod?}", { | 229 local ok, where, code = os.execute(render_cli("luarocks {op} --tree={dir} {server&--server={server}} {mod?}", { |
| 230 dir = dir; op = operation; mod = mod; server = server; | 230 dir = dir; op = operation; mod = mod; server = server; |
