Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the --page parameter to the theme search command #167

Merged
merged 3 commits into from Apr 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
25 changes: 20 additions & 5 deletions README.md
Expand Up @@ -121,14 +121,17 @@ wp plugin deactivate [<plugin>...] [--uninstall] [--all] [--network]
Deletes plugin files without deactivating or uninstalling.

~~~
wp plugin delete <plugin>...
wp plugin delete [<plugin>...] [--all]
~~~

**OPTIONS**

<plugin>...
[<plugin>...]
One or more plugins to delete.

[--all]
If set, all plugins will be deleted.

**EXAMPLES**

# Delete plugin
Expand Down Expand Up @@ -740,16 +743,22 @@ wp theme activate <theme>
Deletes one or more themes.

~~~
wp theme delete <theme>...
wp theme delete [<theme>...] [--all] [--force]
~~~

Removes the theme or themes from the filesystem.

**OPTIONS**

<theme>...
[<theme>...]
One or more themes to delete.

[--all]
If set, all themes will be deleted except active theme.

[--force]
To delete active theme use this.

**EXAMPLES**

$ wp theme delete twentytwelve
Expand Down Expand Up @@ -1177,7 +1186,7 @@ wp theme path [<theme>] [--dir]
Searches the WordPress.org theme directory.

~~~
wp theme search <search> [--per-page=<per-page>] [--field=<field>] [--fields=<fields>] [--format=<format>]
wp theme search <search> [--page=<page>] [--per-page=<per-page>] [--field=<field>] [--fields=<fields>] [--format=<format>]
~~~

Displays themes in the WordPress.org theme directory matching a given
Expand All @@ -1188,6 +1197,12 @@ search query.
<search>
The string to search for.

[--page=<page>]
Optional page to display.
---
default: 1
---

[--per-page=<per-page>]
Optional number of results to display. Defaults to 10.

Expand Down
6 changes: 6 additions & 0 deletions src/Theme_Command.php
Expand Up @@ -106,6 +106,12 @@ public function status( $args ) {
* <search>
* : The string to search for.
*
* [--page=<page>]
* : Optional page to display.
* ---
* default: 1
* ---
*
* [--per-page=<per-page>]
* : Optional number of results to display. Defaults to 10.
*
Expand Down