diff options
| author | Christian Dickmann <dickmann@php.net> | 2002-06-02 20:13:50 +0000 |
|---|---|---|
| committer | Christian Dickmann <dickmann@php.net> | 2002-06-02 20:13:50 +0000 |
| commit | 19c946cce206cfec35a94fab27bcfd369f3cf8c8 (patch) | |
| tree | a732d98e306a00ef2dc7f5c660965a09e6f5f889 /pear/PEAR/Frontend | |
| parent | b04656ad407268ca1223c40044f718fb94059c7b (diff) | |
| download | php-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.php | 12 |
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'])) |
