diff options
Diffstat (limited to 'src/bin')
-rwxr-xr-x | src/bin/luarocks | 4 | ||||
-rwxr-xr-x | src/bin/luarocks-admin | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/bin/luarocks b/src/bin/luarocks index 3c9e1b74..be6c2b81 100755 --- a/src/bin/luarocks +++ b/src/bin/luarocks | |||
@@ -1,5 +1,8 @@ | |||
1 | #!/usr/bin/env lua | 1 | #!/usr/bin/env lua |
2 | 2 | ||
3 | -- this should be loaded first. | ||
4 | local cfg = require("luarocks.cfg") | ||
5 | |||
3 | local loader = require("luarocks.loader") | 6 | local loader = require("luarocks.loader") |
4 | local command_line = require("luarocks.command_line") | 7 | local command_line = require("luarocks.command_line") |
5 | 8 | ||
@@ -24,6 +27,7 @@ commands = { | |||
24 | purge = "luarocks.purge", | 27 | purge = "luarocks.purge", |
25 | doc = "luarocks.doc", | 28 | doc = "luarocks.doc", |
26 | upload = "luarocks.upload", | 29 | upload = "luarocks.upload", |
30 | config = "luarocks.config_cmd", | ||
27 | } | 31 | } |
28 | 32 | ||
29 | command_line.run_command(...) | 33 | command_line.run_command(...) |
diff --git a/src/bin/luarocks-admin b/src/bin/luarocks-admin index e7f49c25..2890d1f1 100755 --- a/src/bin/luarocks-admin +++ b/src/bin/luarocks-admin | |||
@@ -1,5 +1,8 @@ | |||
1 | #!/usr/bin/env lua | 1 | #!/usr/bin/env lua |
2 | 2 | ||
3 | -- this should be loaded first. | ||
4 | local cfg = require("luarocks.cfg") | ||
5 | |||
3 | local loader = require("luarocks.loader") | 6 | local loader = require("luarocks.loader") |
4 | local command_line = require("luarocks.command_line") | 7 | local command_line = require("luarocks.command_line") |
5 | 8 | ||