Re: Package manager for OSX
| From: | Stig S. Bakken | Date: | Tue, 18 Jun 2002 13:36:56 +0000 |
| Subject: | Re: Package manager for OSX | ||
| References: | 1 2 3 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-7181@lists.php.net to get a copy of this message | ||
On Tue, 2002-06-18 at 14:24, Markus Fischer wrote:
> On Tue, Jun 18, 2002 at 10:59:42AM +0200, Bertrand Mansion wrote :
> > +-----------+----------+
> > I have had some difficulties to parse the | Package | Version | table.
> > +-----------+----------+
> > The Apple Cocoa framework doesn't have regular expressions and uses a thing
> > called NSScanner which scans your lines up to the string you defined. Then,
> > you can take the result it finds. The main problem is that you can't define
> > wildcards like in regex. This is really cheap.
> >
> > CSV or XML output would both be very useful, probably not only for MACOSX. I
> > have a small preference for XML but it should be very light (not xml-rpc).
> > If you find the time to add an option to the pear command-line tool to
> > output xml or csv, it will really make everything easier for future GUI
> > developers.
>
> I've to agree here. Though the format of e.g. 'pear
> remote-list' looks ok to read from a terminal it's pretty bad
> if you want to post-process it. Null lines like
> +----------------------+---------+ or multiple occurences
> like | PACKAGE | VERSION | don't do any good. Do
> we really need that pretty output? Doesn't just
> Packagename (tab/space mix) Version does it too ?
>
> $ pear remote-list
> Archive_Tar 0.9
> Auth 1.0.2
> Auth_HTTP 1.0
> [...]
>
> no page delimiter, no headline ?
This output is meant for humans, not programs. If we need a format that
is easy to parse, we should make one that is _really_ easy to parse.
I'll make an XML version (I have a feeling CSV could become ugly pretty
fast).
- Stig
--
Stig Sæther Bakken, Fast Search & Transfer ASA, Trondheim, Norway
http://pear.php.net/wishlist.php/ssb