From: Stig Bakken Date: Tue, 21 May 2002 01:38:50 +0000 (+0000) Subject: * added more shortcuts X-Git-Tag: RELEASE_0_10~68 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dd6b25cfcbeeedb8969cd10add9cf68787889ef1;p=php * added more shortcuts --- diff --git a/pear/PEAR/Command/Config.php b/pear/PEAR/Command/Config.php index fd919c9584..f2d12b550d 100644 --- a/pear/PEAR/Command/Config.php +++ b/pear/PEAR/Command/Config.php @@ -44,6 +44,7 @@ configuration layers are "user", "system" and "default". 'config-get' => array( 'summary' => 'Show One Setting', 'function' => 'doConfigGet', + 'shortcut' => 'cg', 'options' => array(), 'doc' => 'Displays the value of one configuration parameter. The first argument is the name of the parameter, an optional second argument @@ -56,6 +57,7 @@ just specified. 'config-set' => array( 'summary' => 'Change Setting', 'function' => 'doConfigSet', + 'shortcut' => 'cs', 'options' => array(), 'doc' => 'Sets the value of one configuration parameter. The first argument is the name of the parameter, the second argument is the new value. diff --git a/pear/PEAR/Command/Install.php b/pear/PEAR/Command/Install.php index 18e4a21303..c9576cea84 100644 --- a/pear/PEAR/Command/Install.php +++ b/pear/PEAR/Command/Install.php @@ -35,6 +35,7 @@ class PEAR_Command_Install extends PEAR_Command_Common 'install' => array( 'summary' => 'Install Package', 'function' => 'doInstall', + 'shortcut' => 'i', 'options' => array( 'force' => array( 'shortopt' => 'f', @@ -80,6 +81,7 @@ four ways of specifying packages. 'upgrade' => array( 'summary' => 'Upgrade Package', 'function' => 'doInstall', + 'shortcut' => 'up', 'options' => array( 'force' => array( 'shortopt' => 'f', @@ -111,6 +113,7 @@ More than one package may be specified at once. 'uninstall' => array( 'summary' => 'Un-install Package', 'function' => 'doUninstall', + 'shortcut' => 'un', 'options' => array( 'nodeps' => array( 'shortopt' => 'n', diff --git a/pear/PEAR/Command/Package.php b/pear/PEAR/Command/Package.php index 28f36da624..074879f075 100644 --- a/pear/PEAR/Command/Package.php +++ b/pear/PEAR/Command/Package.php @@ -27,6 +27,7 @@ class PEAR_Command_Package extends PEAR_Command_Common 'package' => array( 'summary' => 'Build Package', 'function' => 'doPackage', + 'shortcut' => 'p', 'options' => array( 'nocompress' => array( 'shortopt' => 'Z', diff --git a/pear/PEAR/Command/Registry.php b/pear/PEAR/Command/Registry.php index 58f74cdfc1..d85be37479 100644 --- a/pear/PEAR/Command/Registry.php +++ b/pear/PEAR/Command/Registry.php @@ -29,6 +29,7 @@ class PEAR_Command_Registry extends PEAR_Command_Common 'list' => array( 'summary' => 'List Installed Packages', 'function' => 'doList', + 'shortcut' => 'l', 'options' => array(), 'doc' => '[package] If invoked without parameters, this command lists the PEAR packages @@ -38,8 +39,8 @@ lists the files in that package. ), 'shell-test' => array( 'summary' => 'Shell Script Test', - 'shortcut' => 'stest', 'function' => 'doShellTest', + 'shortcut' => 'stest', 'options' => array(), 'doc' => ' [[relation] version] Tests if a package is installed in the system. Will exit(1) if it is not. diff --git a/pear/PEAR/Command/Remote.php b/pear/PEAR/Command/Remote.php index fb4fe201d1..b7b85c530a 100644 --- a/pear/PEAR/Command/Remote.php +++ b/pear/PEAR/Command/Remote.php @@ -28,9 +28,10 @@ class PEAR_Command_Remote extends PEAR_Command_Common // {{{ command definitions var $commands = array( - 'info-remote' => array( + 'remote-info' => array( 'summary' => 'Information About Remote Packages', - 'function' => 'doInfoRemote', + 'function' => 'doRemoteInfo', + 'shortcut' => 'ri', 'options' => array(), 'doc' => ' Get details on a package from the server.', @@ -38,14 +39,16 @@ Get details on a package from the server.', 'list-upgrades' => array( 'summary' => 'List Available Upgrades', 'function' => 'doListUpgrades', + 'shortcut' => 'lu', 'options' => array(), 'doc' => ' List releases on the server of packages you have installed where a newer version is available with the same release state (stable etc.).' ), - 'list-remote' => array( + 'remote-list' => array( 'summary' => 'List Remote Packages', - 'function' => 'doListRemote', + 'function' => 'doRemoteList', + 'shortcut' => 'rl', 'options' => array(), 'doc' => ' Lists the packages available on the configured server along with the @@ -54,6 +57,7 @@ latest stable release of each package.', 'download' => array( 'summary' => 'Download Package', 'function' => 'doDownload', + 'shortcut' => 'd', 'options' => array( 'nocompress' => array( 'shortopt' => 'Z',