[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Luarocks List.lua from Lua script
- From: Russell Haley <russ.haley@...>
- Date: Sun, 5 Mar 2017 00:16:30 -0800
Hi there,
I don't know if this exercise was academic or not, but I couldn't
figure out how to call "luarocks list" from within lua other than the
command line tool. I modified list.lua to also export a list(...)
command that returns table,table,table string: results, trees, flags,
version.
If anyone else would find that useful I'll fork and create a pull
request (and do some more testing!).
diff
http://pastebin.com/jxD2zSDG
test jig
http://pastebin.com/kgVBZRLs
Cheers,
Russ