Allow Adding/Updating Multiple Options at Once
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
Research direction
Start by reviewing the linked wp-cli/wp-cli#2972 and wp-cli/entity-command#220 issues, then inspect the existing wp option update command entry point. Determine whether multiple key/value pairs or JSON should be supported and document the accepted input; done means the chosen form is implemented and its behavior is covered by tests.
Written by the indexing model from the issue text.
Description
I was just looking at https://github.com/wp-cli/wp-cli/issues/2972 and https://github.com/wp-cli/entity-command/issues/220 (regarding deleting multiple options), but I haven't seen anyone requesting what I'm looking for.
I'm wondering if it'd be possible to do something like this:
$ wp option update blogname "Random blog name" blogdescription "Some random blog description"
I'm not sure if this is the way it would actually be implemented – perhaps the options would need to be specified in JSON format instead, or something similar.
Perhaps this is already possible in some other way…if so, I hope someone can point me in the right direction as I can't find any documentation on this.
- Dominant language
- PHP
- Stars
- 105
- Forks
- 97
- Avg merge
- 2h 1m
- Merged PRs (30d)
- 12
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from wp-cli/entity-command
-
command:comment-delete state:unconfirmed
Difficulty 3/5 1-2 days Newbie friendliness 35/100
wp-cli/entity-command#538 · 2 comments ·
-
command:post-meta-get command:post-meta-list
Difficulty 4/5 3-5 days Newbie friendliness 35/100
wp-cli/entity-command#142 · 10 comments · 2 reactions ·
All issues in wp-cli/entity-command
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
getgrav/grav-plugin-api#45 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
RSS-Bridge/rss-bridge#5098 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
phingofficial/phing#2025 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
silverstripe/developer-docs#911 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100