Software /
code /
prosody
Comparison
util/prosodyctl.lua @ 11136:d0d3e25b7300
util.prosodyctl: Simplify luarocks invocation
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 05 Oct 2020 21:23:39 +0200 |
parent | 11134:3e3f22043552 |
child | 11290:7919ecdc4a72 |
comparison
equal
deleted
inserted
replaced
11135:56490ffde93f | 11136:d0d3e25b7300 |
---|---|
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); |
236 end | 236 end |
237 if operation == "list" then | 237 os.execute(render_cli("luarocks {op} --tree={dir} {server&--server={server}} {mod?}", { |
238 os.execute(render_cli("luarocks list --tree={dir}", {dir = dir})); | 238 dir = dir; op = operation; mod = mod; server = server; |
239 else | 239 })); |
240 os.execute(render_cli("luarocks {op} --tree={dir} {server&--server={server}} {mod}", { | |
241 dir = dir; op = operation; mod = mod; server = server; | |
242 })); | |
243 end | |
244 if operation == "install" then | 240 if operation == "install" then |
245 show_module_configuration_help(mod); | 241 show_module_configuration_help(mod); |
246 end | 242 end |
247 end | 243 end |
248 | 244 |