summaryrefslogtreecommitdiffstats
path: root/bin/acf-cli
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2012-01-19 16:11:08 +0000
committerTed Trask <ttrask01@yahoo.com>2012-01-19 16:11:08 +0000
commit2b3a7472f9b4c3c25e1fe7d607d5d0df7eac90e8 (patch)
treebb02ada58a7fc3540a866c1a2a7a962a6f6064be /bin/acf-cli
parent7f7a661bc5ced049d776da54ac44db2fbb1e4b81 (diff)
downloadacf-core-2b3a7472f9b4c3c25e1fe7d607d5d0df7eac90e8.tar.bz2
acf-core-2b3a7472f9b4c3c25e1fe7d607d5d0df7eac90e8.tar.xz
Starting to reorganize mvc.lua and acf_www controllers to move www-specific things from mvc to acf_www, and visa versa
Goal is to have mvc.lua more usable from a lua app Also affects acf-cli and acf_cli controller
Diffstat (limited to 'bin/acf-cli')
-rwxr-xr-xbin/acf-cli8
1 files changed, 1 insertions, 7 deletions
diff --git a/bin/acf-cli b/bin/acf-cli
index c804c97..a0560a7 100755
--- a/bin/acf-cli
+++ b/bin/acf-cli
@@ -19,12 +19,7 @@ Output will be a serialized Lua table.
end
require("posix")
---local PATH = package.path
---local p = posix.dirname(arg[0])
---if p:sub(1,1) ~= "/" then p = posix.getcwd().."/"..p end
---package.path = p.."/?.lua;" .. package.path
mvc = require("acf.mvc")
---package.path = PATH
-- this is to get around having to store
-- the config file in /etc/helloworld/helloworld.conf
@@ -38,7 +33,6 @@ APP=FRAMEWORK:new("acf_cli")
-- (put into ENV.PATH_INFO)
-- followed by parameters
-- (put into APP.clientdata)
-ENV.PATH_INFO = arg[1]
APP.clientdata = {}
for i=2,#arg do
a,v = string.match(arg[i], "([^=]*)=(.*)")
@@ -48,6 +42,6 @@ for i=2,#arg do
APP.clientdata[arg[i]] = true
end
end
-APP:dispatch()
+APP:dispatch(APP.parse_path_info(arg[1]))
APP:destroy()
FRAMEWORK:destroy()