gws-docs-write

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

docs +write

docs +write

PREREQUISITE: Read
../gws-shared/SKILL.md
for auth, global flags, and security rules. If missing, run
gws generate-skills
to create it.
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

标志参数

FlagRequiredDefaultDescription
--document
Document ID
--text
Text to append (plain text)
标志是否必填默认值描述
--document
文档ID
--text
要追加的文本(纯文本)

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读写命令