Comment 5 for bug 48070

Revision history for this message
Matt Zimmerman (mdz) wrote : Re: [Bug 48070] Re: [queue tool] Please accept multiple queue IDs to act on

On Tue, Oct 03, 2006 at 12:56:22PM -0000, Celso Providelo wrote:
> Matt,
>
> Looks like we have a new suggestion:
> {{{
> (09:46:23) Kamion: it would be quite nice if 'queue' without any non-option arguments would start a queue console, a bit like the python shell
> (09:46:43) Kamion: then you could just type commands at it, without having to worry about what happens if the third-from-last command in your sequence fail
> (09:46:46) Kamion: s
> }}}
>
> I like it and AFAICT the implementation would be much cleaner than the
> former (full of corner cases)

What corner cases? It seems incredibly simple to me; hundreds of other
programs work this way and it makes intuitive sense.

> A Twisted based console (same used already in scripts/ftpmaster-tools
> /buildd-monitor.py) and the current queue.CommandRunner association
> would do a great job with much less code.

Why is any more code required than a for loop?

--
 - mdz