Command updates and renames

- Renamed the plugins command to plugin
- Updated the example and the readme
- Renamed the theme/list command to theme/status
- Added extra functionality to the plugin/status command (asked in #2)
This commit is contained in:
Andreas Creten 2011-09-29 00:08:09 +02:00
parent 2160849a9d
commit c488e165c2

View file

@ -20,7 +20,7 @@ Commands
- `wp core` - Update the WordPress core
- `wp home` - Open the wp-cli project on Github
- `wp option ...` - Manipulate the WordPress options
- `wp plugins ...` - Do cool things with the installed plugins
- `wp plugin ...` - Do cool things with the installed plugins
- `wp theme ...` - Get details on the installed and current theme

Usage
@ -36,7 +36,7 @@ Example usage:
wp core [update|help] ...
wp home [help] ...
wp option [add|update|delete|get|help] ...
wp plugins [status|activate|deactivate|install|delete|update|help] ...
wp plugin [status|activate|deactivate|install|delete|update|help] ...
wp theme [list|details|activate|help] ...
```

@ -84,7 +84,7 @@ class ExampleCommand extends WP_CLI_Command {
* @return void
* @author Andreas Creten
*/
function example($args) {
function example($args = array()) {
// Print a success message
WP_CLI::success('Success message');
}