summaryrefslogtreecommitdiff
path: root/pear/PEAR/Frontend
diff options
context:
space:
mode:
authorChristian Dickmann <dickmann@php.net>2002-06-02 20:13:50 +0000
committerChristian Dickmann <dickmann@php.net>2002-06-02 20:13:50 +0000
commit19c946cce206cfec35a94fab27bcfd369f3cf8c8 (patch)
treea732d98e306a00ef2dc7f5c660965a09e6f5f889 /pear/PEAR/Frontend
parentb04656ad407268ca1223c40044f718fb94059c7b (diff)
downloadphp-git-19c946cce206cfec35a94fab27bcfd369f3cf8c8.tar.gz
make 'pear search' work with CLI. fix a typo
Diffstat (limited to 'pear/PEAR/Frontend')
-rw-r--r--pear/PEAR/Frontend/CLI.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/pear/PEAR/Frontend/CLI.php b/pear/PEAR/Frontend/CLI.php
index 5032d18b58..d0b029bace 100644
--- a/pear/PEAR/Frontend/CLI.php
+++ b/pear/PEAR/Frontend/CLI.php
@@ -355,6 +355,18 @@ class PEAR_Frontend_CLI extends PEAR
{
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']))