RFC: command composition
Robert Collins
robertc at robertcollins.net
Mon Feb 9 12:33:05 GMT 2009
On Mon, 2009-02-09 at 21:45 +1100, Martin Pool wrote:
> 2009/2/9 Robert Collins <robertc at robertcollins.net>:
> > Well the plugin's option should be in the options list. So I'm thinking
> > a method on command class to register the callback and add options; with
> > a list in the cmd_FOO instance that provides the callback to call. Then
> > the callback occurs on the parsed (options, args) tuple as I mentioned
> > above.
>
> I'd like to see it, if possible, done as a standard hook, rather than
> a special registration.
I'm not sure what you mean; do you mean a hooks instance per command?
That would seem to add a lot of overhead to parsing builtins.py, for
instance.
-Rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20090209/addb0d2b/attachment.pgp
More information about the bazaar
mailing list