gws-workflow-file-announce

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

workflow +file-announce

workflow +file-announce

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

标志

FlagRequiredDefaultDescription
--file-id
Drive file ID to announce
--space
Chat space name (e.g. spaces/SPACE_ID)
--message
Custom announcement message
--format
Output format: json (default), table, yaml, csv
标志是否必填默认值说明
--file-id
要发布通知的Drive文件ID
--space
Chat空间名称(例如 spaces/SPACE_ID)
--message
自定义通知消息
--format
输出格式: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
    gws drive +upload
    first to upload the file, then announce it here.
  • 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 — 所有跨服务生产力工作流命令