On Tue, Sep 14, 2010 at 8:57 AM, steve donovan <[email protected]> wrote: > It's easier to do in Lua (webrocks has to parse the output of 'list') > but it would be convenient.
e.g. for the simple global case (one version installed per package): inf = io.popen 'luarocks list' for i = 1,4 do inf:read() end list = inf:read '*all' for package,version in list:gmatch '\n([%w%-]+)\n%s+([%w%-%.]+)' do print(package,version) end I wonder if there's scope for a luarocks-tools package, rather than adding lots of little options to mainline LR steve d. _______________________________________________ Luarocks-developers mailing list [email protected] http://lists.luaforge.net/cgi-bin/mailman/listinfo/luarocks-developers
