Higher level methods in bzrlib for library users
Aaron Bentley
aaron at aaronbentley.com
Mon Dec 6 14:49:49 GMT 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 12/02/2010 09:46 PM, Martin Pool wrote:
> On 3 December 2010 12:22, Jelmer Vernooij <jelmer at samba.org> wrote:
> To get there, I think we just need to take the existing command
> objects and split them so that the core logic is separated from:
>
> * checking and interpreting command line arguments
> * formatting the output into strings etc
> * user interactivity
I took that kind of approach with shelf_ui.Shelver/Unshelver. I was
trying to respond to similar user requests for a higher level interface.
Shelver/Unshelver have a from_args() factory method that converts the
user arguments and options into the values needed by the constructor.
The run() method actually does the work.
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkz8+A0ACgkQ0F+nu1YWqI24KwCfYJobOvGyVYr/95eRWMQRLMQI
ulEAoIhRy22FK59428trzFz05H9yFPnY
=lovT
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list