aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/luarocks/core/cfg.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/luarocks/core/cfg.lua b/src/luarocks/core/cfg.lua
index 67d99c2e..e0066150 100644
--- a/src/luarocks/core/cfg.lua
+++ b/src/luarocks/core/cfg.lua
@@ -528,6 +528,21 @@ end
528 528
529local cfg = {} 529local cfg = {}
530 530
531--- Initializes the LuaRocks configuration for variables, paths
532-- and OS detection.
533-- @param lua_data table containing information pertaining the location
534-- of Lua in the environment. All fields below are optional:
535-- * lua_version (in x.y format, e.g. "5.3")
536-- * luajit_version (complete, e.g. "2.1.0-beta3")
537-- * lua_bindir (e.g. "/usr/local/bin")
538-- * lua_incdir (e.g. "/usr/local/include/lua5.3/")
539-- * lua_libdir(e.g. "/usr/local/lib")
540-- * lua_dir (e.g. "/usr/local")
541-- * lua_interpreter (e.g. "lua-5.3")
542-- @param project_dir a string with the path of the project directory
543-- when using per-project environments, as created with `luarocks init`
544-- @param warning a logging function for warnings that takes a string
545-- @return true on success; nil and an error message on failure.
531function cfg.init(lua_data, project_dir, warning) 546function cfg.init(lua_data, project_dir, warning)
532 lua_data = lua_data or {} 547 lua_data = lua_data or {}
533 548