/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. -- this should be loaded first.
  3. local cfg = require("luarocks.cfg")
  4. local loader = require("luarocks.loader")
  5. local command_line = require("luarocks.command_line")
  6. program_description = "LuaRocks main command-line interface"
  7. commands = {
  8. help = "luarocks.help",
  9. pack = "luarocks.pack",
  10. unpack = "luarocks.unpack",
  11. build = "luarocks.build",
  12. install = "luarocks.install",
  13. search = "luarocks.search",
  14. list = "luarocks.list",
  15. remove = "luarocks.remove",
  16. make = "luarocks.make",
  17. download = "luarocks.download",
  18. path = "luarocks.path_cmd",
  19. show = "luarocks.show",
  20. new_version = "luarocks.new_version",
  21. lint = "luarocks.lint",
  22. write_rockspec = "luarocks.write_rockspec",
  23. purge = "luarocks.purge",
  24. doc = "luarocks.doc",
  25. upload = "luarocks.upload",
  26. config = "luarocks.config_cmd",
  27. }
  28. command_line.run_command(...)