diff options
author | João Duarte <jvsDuarte08@gmail.com> | 2019-07-17 03:20:08 -0700 |
---|---|---|
committer | João Duarte <jvsDuarte08@gmail.com> | 2019-07-17 03:20:08 -0700 |
commit | 344f333e82da80a66a357ba5b271043b504ada2f (patch) | |
tree | 21e72d22424949eaed7f898a7c9d908c6510ad7e /prosodyctl | |
parent | 5b190cf27618c048a69021dae3415727a50630e9 (diff) | |
download | prosody-344f333e82da80a66a357ba5b271043b504ada2f.tar.gz prosody-344f333e82da80a66a357ba5b271043b504ada2f.zip |
prosodyctl: Added the 'install' command
Diffstat (limited to 'prosodyctl')
-rwxr-xr-x | prosodyctl | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -153,6 +153,16 @@ function commands.remove(arg) return 0 end +function commands.install(arg) + if arg[1] == "--help" then + show_usage([[make]], [[Installs a rockspec/rock from a specified server]]); + return 1 + end + print("Installing module "..arg[1].." locally, from luarocks repo") + os.execute("luarocks --tree='./plugins' install "..arg[1]) + return 0 +end + function commands.list(arg) if not arg[1] or arg[1] == "--help" then show_usage([[list]], [[Shows installed rocks]]); |