@ziniao-open/cli 0.1.0-beta.147 → 0.1.0-beta.149
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -63,3 +63,15 @@ ziniao-cli skills install
|
|
|
63
63
|
备选:`npx skills add ziniao-open/skills -y -g`
|
|
64
64
|
|
|
65
65
|
详见 [ziniao-skills](https://github.com/ziniao-open/skills)。
|
|
66
|
+
|
|
67
|
+
### 操作店铺中的新标签页
|
|
68
|
+
|
|
69
|
+
点击链接或手动打开新标签后,可列出页面并选择后续命令的默认目标:
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
ziniao-cli page list --store-id <店铺ID>
|
|
73
|
+
ziniao-cli page select --store-id <店铺ID> --target-id <页面ID>
|
|
74
|
+
ziniao-cli page content --store-id <店铺ID>
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
列表返回 `targetId`、`title`、`url`、`selected`。`selected` 表示 CLI 默认目标,不代表浏览器前台标签。选择操作不会导航或激活页面,选择在当前店铺运行会话中生效。页面命令仍可使用 `--target-id` 指定目标;沿用现有行为,该操作也会更新后续默认目标。目标关闭后会重新解析;有多个可操作页面且没有有效默认目标时,需要重新选择。需配合支持 `list_pages`、`select_page` 的客户端使用。
|