On 07/06/2015 07:27 PM, XIAO Qi wrote:
> Hi,
> 
> As some of you might already know, I am doing an addon system for 
> LuaRocks as my Summer of Code project. There are still a lot of
> rough edges, but it is now more or less in shape. I would like to
> invite all of you to test and comment.
> 
> The version of LuaRocks with addons now live at my repository at 
> https://github.com/xiaq/luarocks/tree/addon-prototype. The usual 
> building and installing instruction (make build && make install) 
> applies.
> 
> You should read my guide to get an idea of how it works: 
> https://github.com/keplerproject/luarocks/wiki/Addon-author%27s-guide.
>
> 
If you are interested in what changes have been made to the code,
> please refer to the pull request: 
> https://github.com/keplerproject/luarocks/pull/395.
> 
> Enjoy and I look forward to your comments! :)
> 
I'm actually working on a project right now that would probably be a
nice fit for a luarocks addon (or a set of them):
https://github.com/Alloyed/loverocks
Right now, it's a mess of copy-pasted code that directly interacts
with luarock's internals, and I'm willing to help to make the
functions I actually need available for addon writers in general.

In particular, I'd like to refactor out the command-line handling
logic. Right now, each luarocks command parses out its own arguments,
which means you can't really compose them together in lua, and any
standards for command-line handling are handled purely by convention.
Instead, I'd like to split commands into a parse() step and a run()
step, where parsing takes the raw arguments and produces some kind of
structured data that then gets passed to run(). That way, we can treat
run() as a programmatic API endpoint in other addons.

If that sounds reasonable, I can spin up a PR on your branch and get
to work.

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Luarocks-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to