Re: Extending Zope2 bin/instance run
Marius Gedminas <[email protected]>
| Newsgroups | gmane.comp.web.zope.devel |
|---|---|
| Message-ID | <20100909140030.GA3752@platonas> |
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 _______________________________________________ Zope-Dev maillist - [email protected] https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
signature.asc
(application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkyI6HoACgkQkVdEXeem14+JwACdFDmCzWYxnxhZG3QKB1KXq/a3 p28An3PFN3kSgFyqDFxlTbOR/zUIIxOf =JnoY -----END PGP SIGNATURE-----