On Thu, Jul 14, 2011 at 2:04 PM, steve donovan
<[email protected]> wrote:
> On Thu, Jul 14, 2011 at 6:08 PM, Wesley Smith <[email protected]> wrote:
>> 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.
>
> luarocks.api is doing some nasty stuff like that currently -
> monkey-patching print and fs.execute_string to get a 'quiet'
> experience. There must be a cleaner way to do this.

Cleaning up the LuaRocks sources. :) We most likely need a state
object to pass around. Perhaps you could create a dummy object for
this in the API and use monkey-patching in the meantime, and then
revert to an actual state object when it is integrated to the API?

-- 
-- 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