[Zope-dev] Extending Zope2 bin/instance run

Marius Gedminas marius at gedmin.as
Thu Sep 9 10:00:30 EDT 2010


On Thu, Sep 09, 2010 at 02:45:10PM +0200, Wichert Akkerman wrote:
> I've opted for a third alternative: use an entry point to define the 
> extra commands. If you do this in setup.py:
> 
>     entry_points="""
>        [zopectl.command]
>        mycommand = mypackage.commands:func
>        """
> 
> you can do:
> 
>      $ bin/instance mycommand [<args>]
> 
> The advantage of this approach is that it makes for more user friendly 
> commands that do not needlessly expose implementation details to the
> commandline.

I like this.

Marius Gedminas
-- 
http://pov.lt/ -- Zope 3/BlueBream consulting and development
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20100909/8c8c1d5e/attachment.bin 


More information about the Zope-Dev mailing list