gws-docs-write
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesedocs +write
docs +write
PREREQUISITE: Readfor auth, global flags, and security rules. If missing, run../gws-shared/SKILL.mdto create it.gws generate-skills
Append text to a document
前置要求: 阅读了解认证、全局标志和安全规则。如果该文件缺失,请运行../gws-shared/SKILL.md命令创建它。gws generate-skills
向文档追加文本
Usage
使用方法
bash
gws docs +write --document <ID> --text <TEXT>bash
gws docs +write --document <ID> --text <TEXT>Flags
标志参数
| Flag | Required | Default | Description |
|---|---|---|---|
| ✓ | — | Document ID |
| ✓ | — | Text to append (plain text) |
| 标志 | 是否必填 | 默认值 | 描述 |
|---|---|---|---|
| ✓ | — | 文档ID |
| ✓ | — | 要追加的文本(纯文本) |
Examples
示例
bash
gws docs +write --document DOC_ID --text 'Hello, world!'bash
gws docs +write --document DOC_ID --text 'Hello, world!'Tips
提示
- Text is inserted at the end of the document body.
- For rich formatting, use the raw batchUpdate API instead.
[!CAUTION] This is a write command — confirm with the user before executing.
- 文本将插入到文档正文的末尾。
- 如需富文本格式,请改用原生batchUpdate API。
[!注意] 这是一个写入命令——执行前请与用户确认。
See Also
另请参阅
- gws-shared — Global flags and auth
- gws-docs — All read and write google docs commands
- gws-shared — 全局标志和认证
- gws-docs — 所有Google Docs读写命令