On Thu, Jul 14, 2011 at 1:08 PM, Wesley Smith <[email protected]> wrote:
> Thanks hisham!
>
>> How are you calling 'luarocks make'? In any case, 'luarocks make' is
>> basically a frontend to build.build_rockspec(), so you could just do
>> something like:
>
> I have basically taken the luarocks and luarocks-admin command scripts
> and embedded them in my app so I'm not running them from the command
> line but from within the main lua_State in my app.  I'm trying to
> modify LuaRocks only when  absolutely necessary, but sometimes it
> can't be avoided.  For example, to populate the gui with data about
> the available rocks repositories, I need access to the data structures
> created (i.e. the tables of rocks generated by luarocks search).  I
> also comment out most of the printing to stdout and the os.exit in the
> die function.

This sounds like a great opportunity for cooperation with Steve
Donovan's just-announced luarocks-api project. Having a user with a
real-world case would be great for work out any issues with the API.
We could then eventually integrate the API with LuaRocks itself.

-- 
-- Hisham
http://hisham.hm/ - http://colorbleed.com.br/

------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
Luarocks-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to