gws-workflow-file-announce
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineseworkflow +file-announce
workflow +file-announce
PREREQUISITE: Readfor auth, global flags, and security rules. If missing, run../gws-shared/SKILL.mdto create it.gws generate-skills
Announce a Drive file in a Chat space
前提条件: 阅读了解认证、全局标志和安全规则。如果文件缺失,请运行../gws-shared/SKILL.md来创建它。gws generate-skills
在Chat空间中发布Drive文件通知
Usage
使用方法
bash
gws workflow +file-announce --file-id <ID> --space <SPACE>bash
gws workflow +file-announce --file-id <ID> --space <SPACE>Flags
标志
| Flag | Required | Default | Description |
|---|---|---|---|
| ✓ | — | Drive file ID to announce |
| ✓ | — | Chat space name (e.g. spaces/SPACE_ID) |
| — | — | Custom announcement message |
| — | — | Output format: json (default), table, yaml, csv |
| 标志 | 是否必填 | 默认值 | 说明 |
|---|---|---|---|
| ✓ | — | 要发布通知的Drive文件ID |
| ✓ | — | Chat空间名称(例如 spaces/SPACE_ID) |
| — | — | 自定义通知消息 |
| — | — | 输出格式:json(默认)、table、yaml、csv |
Examples
示例
bash
gws workflow +file-announce --file-id FILE_ID --space spaces/ABC123
gws workflow +file-announce --file-id FILE_ID --space spaces/ABC123 --message 'Check this out!'bash
gws workflow +file-announce --file-id FILE_ID --space spaces/ABC123
gws workflow +file-announce --file-id FILE_ID --space spaces/ABC123 --message 'Check this out!'Tips
提示
- This is a write command — sends a Chat message.
- Use first to upload the file, then announce it here.
gws drive +upload - Fetches the file name from Drive to build the announcement.
- 这是一个写入命令——会发送一条Chat消息。
- 请先使用上传文件,再在此处发布通知。
gws drive +upload - 从Drive获取文件名来构建通知内容。
See Also
另请参阅
- gws-shared — Global flags and auth
- gws-workflow — All cross-service productivity workflows commands
- gws-shared — 全局标志与认证
- gws-workflow — 所有跨服务生产力工作流命令