Re: Package manager for OSX

From: Date: Tue, 18 Jun 2002 12:24:06 +0000
Subject: Re: Package manager for OSX
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-7180@lists.php.net to get a copy of this message
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 ? - Markus -- GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc Did I help you? http://guru.josefine.at/wish_en Konnte ich helfen? http://guru.josefine.at/wish_de "uhmm.. the dates in the bug db.. aren't they printed a bit wrong, i mean, did i miss when we changed to 53 days/month ( +2002-02-53) ? =P - N0v3ll

« previous php.pear.dev (#7180) next »