svn: /pear2/sandbox/SimpleChannelServer/trunk/ customcommand/commands.xml src/SimpleChannelServer/CLI.php

From: Date: Wed, 02 Dec 2009 02:08:09 +0000
Subject: svn: /pear2/sandbox/SimpleChannelServer/trunk/ customcommand/commands.xml src/SimpleChannelServer/CLI.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-9059@lists.php.net to get a copy of this message
saltybeagle Wed, 02 Dec 2009 02:08:09 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=291578 Log: Add scs-categorize command to the plugin commands Changed paths: U pear2/sandbox/SimpleChannelServer/trunk/customcommand/commands.xml U pear2/sandbox/SimpleChannelServer/trunk/src/SimpleChannelServer/CLI.php Modified: pear2/sandbox/SimpleChannelServer/trunk/customcommand/commands.xml =================================================================== --- pear2/sandbox/SimpleChannelServer/trunk/customcommand/commands.xml 2009-12-02 02:01:18 UTC (rev 291577) +++ pear2/sandbox/SimpleChannelServer/trunk/customcommand/commands.xml 2009-12-02 02:08:09 UTC (rev 291578) @@ -119,6 +119,32 @@ </doc> </command> <command> + <name>scs-categorize</name> + <class>pear2\SimpleChannelServer\CLI</class> + <function>pyrusCategorize</function> + <autoloadpath/> + <summary>Simple Channel Server: Categorize a package</summary> + <shortcut>scat</shortcut> + <options/> + <arguments> + <argument> + <name>package</name> + <multiple>0</multiple> + <optional>0</optional> + <doc>Package to add to the category</doc> + </argument> + <argument> + <name>category</name> + <multiple>0</multiple> + <optional>0</optional> + <doc>Name of the category. This may contain spaces (use &quot;&quot; to contain them)</doc> + </argument> + </arguments> + <doc> +Use this command to add a package to a category. + </doc> + </command> + <command> <name>scs-release</name> <class>pear2\SimpleChannelServer\CLI</class> <function>pyrusRelease</function> Modified: pear2/sandbox/SimpleChannelServer/trunk/src/SimpleChannelServer/CLI.php =================================================================== --- pear2/sandbox/SimpleChannelServer/trunk/src/SimpleChannelServer/CLI.php 2009-12-02 02:01:18 UTC (rev 291577) +++ pear2/sandbox/SimpleChannelServer/trunk/src/SimpleChannelServer/CLI.php 2009-12-02 02:08:09 UTC (rev 291578) @@ -80,6 +80,12 @@ echo "Added {$args['package']} to {$args['category']} \n"; } + function pyrusCategorize($frontend, $args) + { + $this->scs->categorize($args['package'], $args['category']); + echo "Added {$args['package']} to {$args['category']} \n"; + } + function printCategorizeUsage() { echo 'Usage: pearscs categorize package category

« previous php.pear.core (#9059) next »