mirror of
https://fast.feibisi.com/https://github.com/wp-cli/scaffold-command.git
synced 2025-10-04 17:01:28 +08:00
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:
parent
2160849a9d
commit
c488e165c2
1 changed files with 3 additions and 3 deletions
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue