blob: ce79aa7473f2339a574ccdbe04cda58a7b65cc79 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/usr/bin/env lua
-- Load cfg first so that luarocks.loader knows it is running inside LuaRocks
local cfg = require("luarocks.core.cfg")
local cmd = require("luarocks.cmd")
local description = "LuaRocks repository administration interface"
local commands = {
make_manifest = "luarocks.admin.cmd.make_manifest",
add = "luarocks.admin.cmd.add",
remove = "luarocks.admin.cmd.remove",
refresh_cache = "luarocks.admin.cmd.refresh_cache",
}
cmd.run_command(description, commands, "luarocks.admin.cmd.external", ...)
|