PageRenderTime 14ms CodeModel.GetById 12ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/src/bin/luarocks

http://github.com/keplerproject/luarocks
Lua | 33 lines | 27 code | 5 blank | 1 comment | 0 complexity | 66a65e9800469978bb4adcb1576b1985 MD5 | raw file
 1#!/usr/bin/env lua
 2
 3-- this should be loaded first.
 4local cfg = require("luarocks.cfg")
 5
 6local loader = require("luarocks.loader")
 7local command_line = require("luarocks.command_line")
 8
 9program_description = "LuaRocks main command-line interface"
10
11commands = {
12   help = "luarocks.help",
13   pack = "luarocks.pack",
14   unpack = "luarocks.unpack",
15   build = "luarocks.build",
16   install = "luarocks.install",
17   search = "luarocks.search",
18   list = "luarocks.list",
19   remove = "luarocks.remove",
20   make = "luarocks.make",
21   download = "luarocks.download",
22   path = "luarocks.path_cmd",
23   show = "luarocks.show",
24   new_version = "luarocks.new_version",
25   lint = "luarocks.lint",
26   write_rockspec = "luarocks.write_rockspec",
27   purge = "luarocks.purge",
28   doc = "luarocks.doc",
29   upload = "luarocks.upload",
30   config = "luarocks.config_cmd",
31}
32
33command_line.run_command(...)