9 Sep
2010
9 Sep
'10
2 p.m.
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