cvs: php4(NEW_UI_API) /pear/PEAR/Command Config.php Remote.php /pear/PEAR/Frontend CLI.php
| From: | Christian Dickmann | Date: | Thu, 30 May 2002 10:14:57 +0000 |
| Subject: | cvs: php4(NEW_UI_API) /pear/PEAR/Command Config.php Remote.php /pear/PEAR/Frontend CLI.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-4290@lists.php.net to get a copy of this message | ||
dickmann Thu May 30 06:14:57 2002 EDT
Modified files: (Branch: NEW_UI_API)
/php4/pear/PEAR/Command Config.php Remote.php
/php4/pear/PEAR/Frontend CLI.php
Log:
fix a typo. add some information to config-show
Index: php4/pear/PEAR/Command/Config.php
diff -u php4/pear/PEAR/Command/Config.php:1.15.2.1 php4/pear/PEAR/Command/Config.php:1.15.2.2
--- php4/pear/PEAR/Command/Config.php:1.15.2.1 Mon May 27 22:14:10 2002
+++ php4/pear/PEAR/Command/Config.php Thu May 30 06:14:57 2002
@@ -18,7 +18,7 @@
// | |
// +----------------------------------------------------------------------+
//
-// $Id: Config.php,v 1.15.2.1 2002/05/28 02:14:10 ssb Exp $
+// $Id: Config.php,v 1.15.2.2 2002/05/30 10:14:57 dickmann Exp $
require_once "PEAR/Command/Common.php";
require_once "PEAR/Config.php";
@@ -104,7 +104,7 @@
} elseif ($value === true) {
$value = 'true';
}
- $data['data'][] = array($key, $value);
+ $data['data'][$this->config->getGroup($key)][] =
array($this->config->getPrompt($key) , $key, $value);
}
$this->ui->outputData($data, $command);
return true;
Index: php4/pear/PEAR/Command/Remote.php
diff -u php4/pear/PEAR/Command/Remote.php:1.12.2.1 php4/pear/PEAR/Command/Remote.php:1.12.2.2
--- php4/pear/PEAR/Command/Remote.php:1.12.2.1 Mon May 27 22:14:10 2002
+++ php4/pear/PEAR/Command/Remote.php Thu May 30 06:14:57 2002
@@ -17,7 +17,7 @@
// | |
// +----------------------------------------------------------------------+
//
-// $Id: Remote.php,v 1.12.2.1 2002/05/28 02:14:10 ssb Exp $
+// $Id: Remote.php,v 1.12.2.2 2002/05/30 10:14:57 dickmann Exp $
require_once 'PEAR/Command/Common.php';
require_once 'PEAR/Common.php';
@@ -96,11 +96,21 @@
// }}}
- // {{{ info-remote
+ // {{{ remote-info
- function doInfoRemote($command, $options, $params)
+ function doRemoteInfo($command, $options, $params)
{
return false; // coming soon
+ var_dump($params[0]);
+ $r = new PEAR_Remote($this->config);
+ $info = $r->call('package.info', $params[0]);
+ if (PEAR::isError($info)) {
+ return $this->raiseError($info);
+ }
+
+ var_dump($info);
+
+ return false; // coming soon
}
// }}}
@@ -140,7 +150,6 @@
if (PEAR::isError($available)) {
return $this->raiseError($available);
}
- $i = $j = 0;
$data = array(
'caption' => 'All packages:',
'border' => true,
Index: php4/pear/PEAR/Frontend/CLI.php
diff -u php4/pear/PEAR/Frontend/CLI.php:1.12.2.4 php4/pear/PEAR/Frontend/CLI.php:1.12.2.5
--- php4/pear/PEAR/Frontend/CLI.php:1.12.2.4 Wed May 29 08:59:13 2002
+++ php4/pear/PEAR/Frontend/CLI.php Thu May 30 06:14:57 2002
@@ -16,7 +16,7 @@
| Author: Stig Sæther Bakken <ssb@fast.no> |
+----------------------------------------------------------------------+
- $Id: CLI.php,v 1.12.2.4 2002/05/29 12:59:13 dickmann Exp $
+ $Id: CLI.php,v 1.12.2.5 2002/05/30 10:14:57 dickmann Exp $
*/
require_once "PEAR.php";
@@ -378,6 +378,18 @@
};
$this->_endTable();
break;
+ case 'config-show':
+ $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 $group) {
+ foreach($group as $value) {
+ $this->_tableRow($value, null, array(1 => array('wrap'
=> 55)));
+ }
+ };
+ $this->_endTable();
+ break;
default:
if (is_array($data))
{
@@ -397,7 +409,7 @@
function log($text)
{
- return $this->displayLine($text);
+ return $this->_displayLine($text);
}
// {{{ bold($text)