cvs: php4 /pear/PEAR/Command Remote.php /pear/PEAR/Frontend CLI.php
| From: | Christian Dickmann | Date: | Sun, 02 Jun 2002 20:13:51 +0000 |
| Subject: | cvs: php4 /pear/PEAR/Command Remote.php /pear/PEAR/Frontend CLI.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-4379@lists.php.net to get a copy of this message | ||
dickmann Sun Jun 2 16:13:51 2002 EDT
Modified files:
/php4/pear/PEAR/Command Remote.php
/php4/pear/PEAR/Frontend CLI.php
Log:
make 'pear search' work with CLI. fix a typo
Index: php4/pear/PEAR/Command/Remote.php
diff -u php4/pear/PEAR/Command/Remote.php:1.13 php4/pear/PEAR/Command/Remote.php:1.14
--- php4/pear/PEAR/Command/Remote.php:1.13 Sun Jun 2 09:07:18 2002
+++ php4/pear/PEAR/Command/Remote.php Sun Jun 2 16:13:50 2002
@@ -17,7 +17,7 @@
// | |
// +----------------------------------------------------------------------+
//
-// $Id: Remote.php,v 1.13 2002/06/02 13:07:18 ssb Exp $
+// $Id: Remote.php,v 1.14 2002/06/02 20:13:50 dickmann Exp $
require_once 'PEAR/Command/Common.php';
require_once 'PEAR/Common.php';
@@ -135,7 +135,7 @@
$this->ui->outputData($info, $command);
- return false; // coming soon
+ return true; // coming soon
}
// }}}
Index: php4/pear/PEAR/Frontend/CLI.php
diff -u php4/pear/PEAR/Frontend/CLI.php:1.13 php4/pear/PEAR/Frontend/CLI.php:1.14
--- php4/pear/PEAR/Frontend/CLI.php:1.13 Sun Jun 2 09:07:19 2002
+++ php4/pear/PEAR/Frontend/CLI.php Sun Jun 2 16:13:50 2002
@@ -16,7 +16,7 @@
| Author: Stig Sæther Bakken <ssb@fast.no> |
+----------------------------------------------------------------------+
- $Id: CLI.php,v 1.13 2002/06/02 13:07:19 ssb Exp $
+ $Id: CLI.php,v 1.14 2002/06/02 20:13:50 dickmann Exp $
*/
require_once "PEAR.php";
@@ -355,6 +355,18 @@
{
switch ($command)
{
+ case 'search':
+ $this->_startTable($data);
+ if (isset($data['headline']) &&
is_array($data['headline']))
+ $this->_tableRow($data['headline'], array('bold' =>
true), array(1 => array('wrap' => 55)));
+
+ foreach($data['data'] as $category) {
+ foreach($category as $pkg) {
+ $this->_tableRow($pkg, null, array(1 => array('wrap' =>
55)));
+ }
+ };
+ $this->_endTable();
+ break;
case 'list-all':
$this->_startTable($data);
if (isset($data['headline']) &&
is_array($data['headline']))