From 5155816b7b925dec5d5feb1568b1d7ceb00938b9 Mon Sep 17 00:00:00 2001 From: Mike Vink Date: Mon, 3 Feb 2025 21:29:42 +0100 Subject: fetch tarball --- src/bin/luarocks-admin | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 src/bin/luarocks-admin (limited to 'src/bin/luarocks-admin') diff --git a/src/bin/luarocks-admin b/src/bin/luarocks-admin new file mode 100755 index 0000000..4a85e45 --- /dev/null +++ b/src/bin/luarocks-admin @@ -0,0 +1,18 @@ +#!/usr/bin/env lua + +-- Load cfg first so that luarocks.loader knows it is running inside LuaRocks +local cfg = require("luarocks.core.cfg") + +local loader = require("luarocks.loader") +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", ...) -- cgit v1.2.3