aboutsummaryrefslogtreecommitdiff
path: root/src/bin/luarocks-admin
blob: e27b8c01dbe47cf0b821f6c1ac87aad040218bc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env lua

local loader = require("luarocks.loader")
local cmd = require("luarocks.cmd")

local description = "LuaRocks repository administration interface"

local commands = {
   help = "luarocks.cmd.help",
   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, ...)