e48be7dfc8dfb1e7110bdecc8c9dfcb9380953dd
- Author
- Veesar <74916913+veesar@users.noreply.github.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
Diff
This diff is truncated to protect this page.
1diff --git a/plugins/wp-cli/README.md b/plugins/wp-cli/README.md
2index 43c41eb53806ab051145263f47124298d6898fc8..c4993ab4c7e12e772a6efcde28c9a2dd5ce5cad7 100644
3--- a/plugins/wp-cli/README.md
4+++ b/plugins/wp-cli/README.md
5@@ -1,107 +1,109 @@
6 # WP-CLI
7
8-**Maintainer:** [joshmedeski](https://github.com/joshmedeski)
9-
10-WordPress Command Line Interface (https://wp-cli.org/)
11-
12-WP-CLI is a set of command-line tools for managing WordPress installations. You can update plugins, set up multisite installs and much more, without using a web browser.
13-
14-This plugin adds [tab completion](https://wp-cli.org/#tab-completions) for `wp-cli` as well as several aliases.
15-
16-## List of Aliases
17-
18-### Core
19-- wpcc='wp core config'
20-- wpcd='wp core download'
21-- wpci='wp core install'
22-- wpcii='wp core is-installed'
23-- wpcmc='wp core multisite-convert'
24-- wpcmi='wp core multisite-install'
25-- wpcu='wp core update'
26-- wpcudb='wp core update-db'
27-- wpcvc='wp core verify-checksums'
28-
29-### Cron
30-- wpcre='wp cron event'
31-- wpcrs='wp cron schedule'
32-- wpcrt='wp cron test'
33+The [WordPress CLI](https://wp-cli.org/) is a command-line tool for managing WordPress installations. You can update plugins, set up multisite installs and much more, without using a web browser.
34
35-### Menu
36-- wpmc='wp menu create'
37-- wpmd='wp menu delete'
38-- wpmi='wp menu item'
39-- wpml='wp menu list'
40-- wpmlo='wp menu location'
41+This plugin adds [tab completion](https://wp-cli.org/#tab-completions) for `wp-cli` as well as several aliases for commonly used commands.
42
43-### Plugin
44-- wppa='activate'
45-- wppda='deactivate'
46-- wppd='delete'
47-- wppg='get'
48-- wppi='install'
49-- wppis='is-installed'
50-- wppl='list'
51-- wppp='path'
52-- wpps='search'
53-- wppst='status'
54-- wppt='toggle'
55-- wppun='uninstall'
56-- wppu='update'
57+To use it, add `wp-cli` to the plugins array in your zshrc file:
58
59-### Post
60-- wppoc='wp post create'
61-- wppod='wp post delete'
62-- wppoe='wp post edit'
63-- wppogen='wp post generate'
64-- wppog='wp post get'
65-- wppol='wp post list'
66-- wppom='wp post meta'
67-- wppou='wp post update'
68-- wppourl='wp post url'
69+```zsh
70+plugins=(... wp-cli)
71+```
72
73-### Sidebar
74-- wpsbl='wp sidebar list'
75-
76-### Theme
77-- wpta='wp theme activate'
78-- wptd='wp theme delete'
79-- wptdis='wp theme disable'
80-- wpte='wp theme enable'
81-- wptg='wp theme get'
82-- wpti='wp theme install'
83-- wptis='wp theme is-installed'
84-- wptl='wp theme list'
85-- wptm='wp theme mod'
86-- wptp='wp theme path'
87-- wpts='wp theme search'
88-- wptst='wp theme status'
89-- wptu='wp theme update'
90-
91-### User
92-- wpuac='wp user add-cap'
93-- wpuar='wp user add-role'
94-- wpuc='wp user create'
95-- wpud='wp user delete'
96-- wpugen='wp user generate'
97-- wpug='wp user get'
98-- wpui='wp user import-csv'
99-- wpul='wp user list'
100-- wpulc='wp user list-caps'
101-- wpum='wp user meta'
102-- wpurc='wp user remove-cap'
103-- wpurr='wp user remove-role'
104-- wpusr='wp user set-role'
105diff --git a/plugins/wp-cli/wp-cli.plugin.zsh b/plugins/wp-cli/wp-cli.plugin.zsh
106index 97bed406e997487a57e1648dd0646db35274fa1a..09bdf3260277146768d57cde45cded8a4d7bce25 100644
107--- a/plugins/wp-cli/wp-cli.plugin.zsh
108+++ b/plugins/wp-cli/wp-cli.plugin.zsh
109@@ -2,14 +2,6 @@
110 # A command line interface for WordPress
111 # https://wp-cli.org/
112
113-# Cache
114-
115-# Cap
116-
117-# CLI
118-
119-# Comment
120-
121 # Core
122 alias wpcc='wp core config'
123 alias wpcd='wp core download'
124@@ -27,18 +19,12 @@ alias wpcrs='wp cron schedule'
125 alias wpcrt='wp cron test'
126
127 # Db
128-
129-# Eval
130-
131-# Eval-File
132-
133-# Export
134-
135-# Help
136-
137-# Import
138-
139-# Media
140+alias wpdbe='wp db export'
141+alias wpdbi='wp db import'
142+alias wpdbcr='wp db create'
143+alias wpdbs='wp db search'
144+alias wpdbch='wp db check'
145+alias wpdbr='wp db repair'
146
147 # Menu
148 alias wpmc='wp menu create'
149@@ -47,10 +33,6 @@ alias wpmi='wp menu item'
150 alias wpml='wp menu list'
151 alias wpmlo='wp menu location'
152
153-# Network
154-
155-# Option
156-
157 # Plugin
158 alias wppa='wp plugin activate'
159 alias wppda='wp plugin deactivate'
160@@ -77,25 +59,9 @@ alias wppom='wp post meta'
161 alias wppou='wp post update'
162 alias wppourl='wp post url'
163
164-# Rewrite
165-
166-# Role
167-
168-# Scaffold
169-
170-# Search-Replace
171-
172-# Shell
173-
174 # Sidebar
175 alias wpsbl='wp sidebar list'
176
177-# Site
178-
179-# Super-Admin
180-
181-# Term
182-
183 # Theme
184 alias wpta='wp theme activate'
185 alias wptd='wp theme delete'
186@@ -111,8 +77,6 @@ alias wpts='wp theme search'
187 alias wptst='wp theme status'
188 alias wptu='wp theme update'
189
190-# Transient
191-
192 # User
193 alias wpuac='wp user add-cap'
194 alias wpuar='wp user add-role'
195@@ -138,9 +102,8 @@ alias wpwm='wp widget move'
196 alias wpwu='wp widget update'
197
198
199+# Completion for wp
200 autoload -U +X bashcompinit && bashcompinit
201-# bash completion for the `wp` command
202-
203 _wp_complete() {
204 local cur=${COMP_WORDS[COMP_CWORD]}
205