Allow Adding/Updating Multiple Options at Once
还没有人认领这个 Issue。
评估
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- PHP
- 星标
- 105
- 派生
- 97
- 平均合并
- 2 小时 1 分钟
- 30 天内合并 PR
- 12
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
wp-cli/entity-command 的其他 Issue
-
command:comment-delete state:unconfirmed
难度 3/5 1-2 天 新手友好度 35/100
wp-cli/entity-command#538 · 2 条评论 ·
-
command:post-meta-get command:post-meta-list
难度 4/5 3-5 天 新手友好度 35/100
wp-cli/entity-command#142 · 10 条评论 · 2 个 reaction ·
查看 wp-cli/entity-command 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
getgrav/grav-plugin-api#45 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
RSS-Bridge/rss-bridge#5098 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
phingofficial/phing#2025 ·
-
难度 2/5 1-3 小时 新手友好度 82/100
silverstripe/developer-docs#911 ·
-
难度 2/5 1-3 小时 新手友好度 74/100