cvs: php4 /pear/PEAR/Command Auth.php Config.php Registry.php
| From: | Tomas V.V.Cox | Date: | Mon, 01 Apr 2002 15:23:47 +0000 |
| Subject: | cvs: php4 /pear/PEAR/Command Auth.php Config.php Registry.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-2940@lists.php.net to get a copy of this message | ||
cox Mon Apr 1 10:23:47 2002 EDT
Modified files:
/php4/pear/PEAR/Command Auth.php Config.php Registry.php
Log:
added help
Index: php4/pear/PEAR/Command/Auth.php
diff -u php4/pear/PEAR/Command/Auth.php:1.3 php4/pear/PEAR/Command/Auth.php:1.4
--- php4/pear/PEAR/Command/Auth.php:1.3 Sat Mar 30 20:51:08 2002
+++ php4/pear/PEAR/Command/Auth.php Mon Apr 1 10:23:46 2002
@@ -16,7 +16,7 @@
// | Author: Stig Bakken <ssb@fast.no> |
// +----------------------------------------------------------------------+
//
-// $Id: Auth.php,v 1.3 2002/03/31 01:51:08 ssb Exp $
+// $Id: Auth.php,v 1.4 2002/04/01 15:23:46 cox Exp $
require_once "PEAR/Command/Common.php";
require_once "PEAR/Remote.php";
@@ -55,6 +55,16 @@
}
// }}}
+
+ function getHelp($command)
+ {
+ switch ($command) {
+ case 'login':
+ return array(null, 'Connects to the remote server');
+ case 'logout':
+ return array(null, 'Disconnects from the remote server');
+ }
+ }
// {{{ run()
/**
Index: php4/pear/PEAR/Command/Config.php
diff -u php4/pear/PEAR/Command/Config.php:1.5 php4/pear/PEAR/Command/Config.php:1.6
--- php4/pear/PEAR/Command/Config.php:1.5 Tue Mar 26 11:31:13 2002
+++ php4/pear/PEAR/Command/Config.php Mon Apr 1 10:23:46 2002
@@ -16,7 +16,7 @@
// | Author: Stig Bakken <ssb@fast.no> |
// +----------------------------------------------------------------------+
//
-// $Id: Config.php,v 1.5 2002/03/26 16:31:13 cox Exp $
+// $Id: Config.php,v 1.6 2002/04/01 15:23:46 cox Exp $
require_once "PEAR/Command/Common.php";
require_once "PEAR/Config.php";
@@ -57,6 +57,20 @@
}
// }}}
+
+ function getHelp($command)
+ {
+ switch ($command) {
+ case 'config-show':
+ return array(null, 'Displays the configuration');
+ case 'config-get':
+ return array('<parameter>',
+ 'Displays the value of the given parameter');
+ case 'config-set':
+ return array('<parameter>=<value>',
+ 'Sets the value of a parameter in the config');
+ }
+ }
// {{{ run()
function run($command, $options, $params)
Index: php4/pear/PEAR/Command/Registry.php
diff -u php4/pear/PEAR/Command/Registry.php:1.3 php4/pear/PEAR/Command/Registry.php:1.4
--- php4/pear/PEAR/Command/Registry.php:1.3 Fri Mar 22 07:46:18 2002
+++ php4/pear/PEAR/Command/Registry.php Mon Apr 1 10:23:46 2002
@@ -32,6 +32,14 @@
return array('list-installed');
}
+ function getHelp($command)
+ {
+ switch ($command) {
+ case 'list-installed':
+ return array(null, 'List the installed PEAR packages in the system');
+ }
+ }
+
// }}}
// {{{ run()