diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2018-08-08 11:39:33 -0300 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-08-08 11:39:33 -0300 |
| commit | ba12ad49509cd782933813e0909fc11c08e00a0a (patch) | |
| tree | 970fe6e58a32630c86e1c4deab57456fe2ceaf44 | |
| parent | be95b41dea2780c6884bcb3d9fb059ef8b9e9c19 (diff) | |
| download | luarocks-before-makefile-refactor.tar.gz luarocks-before-makefile-refactor.tar.bz2 luarocks-before-makefile-refactor.zip | |
cfg: document cfg.initbefore-makefile-refactor
| -rw-r--r-- | src/luarocks/core/cfg.lua | 15 |
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 | ||
| 529 | local cfg = {} | 529 | local 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. | ||
| 531 | function cfg.init(lua_data, project_dir, warning) | 546 | function cfg.init(lua_data, project_dir, warning) |
| 532 | lua_data = lua_data or {} | 547 | lua_data = lua_data or {} |
| 533 | 548 | ||
