On Tue, Sep 14, 2010 at 10:57, steve donovan <[email protected]> wrote:
> On Mon, Sep 13, 2010 at 11:52 PM, Alexander Gladysh <[email protected]> 
> wrote:
>> Can we get a machine-readable alternative for the `luarocks list'
>> command? (I.e.: one line per rock version, with rock name duplicated
>> if several versions are installed, no extra output.)

>> Currently I have to do a lot of greps:

> It's easier to do in Lua (webrocks has to parse the output of 'list')
> but it would be convenient.

> Maybe a --raw flag?

Usually I'm all for Lua, but here I want to use xargs without thinking:

sudo luarocks list --raw | awk '{ print $1; }' | xargs -n1 sudo
luarocks remove --force

I'd say that we also need --raw0 which outputs data separated by '\0'
instead of '\n'.

Alexander.

_______________________________________________
Luarocks-developers mailing list
[email protected]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/luarocks-developers

Reply via email to