cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Bond-Caron <jbo...@gdesolutions.com>
Subject RE: Proposal: hooks support for plugins
Date Wed, 05 Mar 2014 17:59:24 GMT
On Wed Mar 5 12:00 PM, Marcel Kinard wrote:
> In that case (i.e., "npm test") the user is explicitly invoking the
> script. If we are
> talking about hooks that run automatically on
> "cordova plugin add", then it is
> implicit. How about if the cli
> prompted the user when a hook request is present
> such as "plugin
> foobar wants to run the script xyz. Do you grant permission for it
> to
> do so?" Perhaps plugman could have an --accept-scripts parm that
> granted
> permission to all such requests to prevent prompting?

Could run scripts in a 'sandbox' of some sort...
http://nodejs.org/api/vm.html

Might be a little safer and less chaotic in terms of what scripts can install, that way uninstall()
can cleanly do its job.


Mime
View raw message