lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


p.s. I may have been a revision behind on the list.lua file. It's too
late to monkey with git so I'll just say I seem to be missing this
from line 13:

util.add_run_function(list)

Cheers a second time,
Russ

On Sun, Mar 5, 2017 at 12:16 AM, Russell Haley <russ.haley@gmail.com> wrote:
> 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