From 757539bac6ed6271d9f125a36c77dcd7366e7f50 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Thu, 9 Jan 2014 20:42:25 -0200 Subject: Performance improvements --- src/bin/luarocks | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) (limited to 'src/bin') diff --git a/src/bin/luarocks b/src/bin/luarocks index 6ab27fa3..e9cfc349 100755 --- a/src/bin/luarocks +++ b/src/bin/luarocks @@ -5,22 +5,24 @@ local command_line = require("luarocks.command_line") program_description = "LuaRocks main command-line interface" -commands = {} -commands.help = require("luarocks.help") -commands.pack = require("luarocks.pack") -commands.unpack = require("luarocks.unpack") -commands.build = require("luarocks.build") -commands.install = require("luarocks.install") -commands.search = require("luarocks.search") -commands.list = require("luarocks.list") -commands.remove = require("luarocks.remove") -commands.make = require("luarocks.make") -commands.download = require("luarocks.download") -commands.path = require("luarocks.path") -commands.show = require("luarocks.show") -commands.new_version = require("luarocks.new_version") -commands.lint = require("luarocks.lint") -commands.write_rockspec = require("luarocks.write_rockspec") -commands.purge = require("luarocks.purge") +commands = { + help = "luarocks.help", + pack = "luarocks.pack", + unpack = "luarocks.unpack", + build = "luarocks.build", + install = "luarocks.install", + search = "luarocks.search", + list = "luarocks.list", + remove = "luarocks.remove", + make = "luarocks.make", + download = "luarocks.download", + path = "luarocks.path", + show = "luarocks.show", + new_version = "luarocks.new_version", + lint = "luarocks.lint", + write_rockspec = "luarocks.write_rockspec", + purge = "luarocks.purge", + doc = "luarocks.doc", +} command_line.run_command(...) -- cgit v1.2.3-55-g6feb From fec24d3a9ef8650ace58d8c6c967405fadb2fd33 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Thu, 9 Jan 2014 21:57:58 -0200 Subject: Add missing commit of luarocks-admin command changes --- src/bin/luarocks-admin | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/bin') diff --git a/src/bin/luarocks-admin b/src/bin/luarocks-admin index 983dda87..e7f49c25 100755 --- a/src/bin/luarocks-admin +++ b/src/bin/luarocks-admin @@ -6,12 +6,11 @@ local command_line = require("luarocks.command_line") program_description = "LuaRocks repository administration interface" commands = { + help = "luarocks.help", + make_manifest = "luarocks.make_manifest", + add = "luarocks.add", + remove = "luarocks.admin_remove", + refresh_cache = "luarocks.refresh_cache", } -commands.help = require("luarocks.help") -commands.make_manifest = require("luarocks.make_manifest") -commands.add = require("luarocks.add") -commands.remove = require("luarocks.admin_remove") -commands.refresh_cache = require("luarocks.refresh_cache") - command_line.run_command(...) -- cgit v1.2.3-55-g6feb From 4ec138869a1543389de638f93e5297ad9a7212d8 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Thu, 9 Jan 2014 22:14:29 -0200 Subject: Looks like I ran the test suite locally in the wrong branch --- src/bin/luarocks | 1 - 1 file changed, 1 deletion(-) (limited to 'src/bin') diff --git a/src/bin/luarocks b/src/bin/luarocks index e9cfc349..72f04c83 100755 --- a/src/bin/luarocks +++ b/src/bin/luarocks @@ -22,7 +22,6 @@ commands = { lint = "luarocks.lint", write_rockspec = "luarocks.write_rockspec", purge = "luarocks.purge", - doc = "luarocks.doc", } command_line.run_command(...) -- cgit v1.2.3-55-g6feb From 5592cbcadfb44c914427a0d538c30f56da1997e1 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Thu, 19 Dec 2013 16:45:40 -0200 Subject: Add doc command --- src/bin/luarocks | 1 + 1 file changed, 1 insertion(+) (limited to 'src/bin') diff --git a/src/bin/luarocks b/src/bin/luarocks index 72f04c83..e9cfc349 100755 --- a/src/bin/luarocks +++ b/src/bin/luarocks @@ -22,6 +22,7 @@ commands = { lint = "luarocks.lint", write_rockspec = "luarocks.write_rockspec", purge = "luarocks.purge", + doc = "luarocks.doc", } command_line.run_command(...) -- cgit v1.2.3-55-g6feb