monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] monotone automate stdio


From: Timothy Brownawell
Subject: Re: [Monotone-devel] monotone automate stdio
Date: Tue, 17 May 2005 12:01:25 -0700

On 5/15/05, Joel Crisp <address@hidden> wrote:
> Hi
> 
> Just a small comment; maybe a format using the numeric prefix familiar to us 
> all from RFCs like
> 
> 200 OK UNKNOWN test/foo
> 201 foo.h
> 201 foo.c
> 
> etc.
> 
> This format is more likely to be parsable with existing libraries and is 
> familiar to people who have worked with other
> software.

I don't entirely get what you're saying. You mean put a number at the
beginning of *each* line? I'm not sure that's even doable without
changes to all the automate commands.

The reasoning behind how I set it up is to separate the output of the
various commands. There *needs* to be an end delimiter of some sort,
and it's probably good to have a start delimiter as well. My choice of
delimiters was purely arbitrary.

I'm not sure it's possible to edit the actual output of the commands,
just to put stuff between them. Also, not editing lets it be handled
almost exactly the same way as the individual commands were; just scan
the output for the delimiters and send the lines to whatever would
have parsed that output. No need to strip line prefixes or anything.

Tim




reply via email to

[Prev in Thread] Current Thread [Next in Thread]