gws-events-subscribe by aurimasapg/cli
npx skills add https://github.com/aurimasapg/cli --skill gws-events-subscribe前提条件: 请先阅读
../gws-shared/SKILL.md以了解身份验证、全局标志和安全规则。如果文件缺失,请运行gws generate-skills来创建它。
订阅 Workspace 事件并将其作为 NDJSON 流式输出
gws events +subscribe
| 标志 | 必需 | 默认值 | 描述 |
|---|---|---|---|
--target | — | — | Workspace 资源 URI(例如,//chat.googleapis.com/spaces/SPACE_ID) |
--event-types |
PREREQUISITE: Read
../gws-shared/SKILL.mdfor auth, global flags, and security rules. If missing, rungws generate-skillsto create it.
Subscribe to Workspace events and stream them as NDJSON
gws events +subscribe
| Flag | Required | Default | Description |
|---|---|---|---|
--target | — | — | Workspace resource URI (e.g., //chat.googleapis.com/spaces/SPACE_ID) |
--event-types |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| — |
| — |
| 要订阅的 CloudEvents 类型,以逗号分隔 |
--project | — | — | 用于 Pub/Sub 资源的 GCP 项目 ID |
--subscription | — | — | 现有的 Pub/Sub 订阅名称(跳过设置) |
--max-messages | — | 10 | 每次拉取批处理的最大消息数(默认:10) |
--poll-interval | — | 5 | 拉取之间的间隔秒数(默认:5) |
--once | — | — | 拉取一次并退出 |
--cleanup | — | — | 退出时删除创建的 Pub/Sub 资源 |
--no-ack | — | — | 不自动确认消息 |
--output-dir | — | — | 将每个事件写入此目录下的单独 JSON 文件 |
gws events +subscribe --target '//chat.googleapis.com/spaces/SPACE' --event-types 'google.workspace.chat.message.v1.created' --project my-project
gws events +subscribe --subscription projects/p/subscriptions/my-sub --once
gws events +subscribe ... --cleanup --output-dir ./events
--cleanup,Pub/Sub 资源将持久保存以便重新连接。[!CAUTION] 这是一个 写入 命令 — 执行前请与用户确认。
每周安装次数
1
代码仓库
首次出现
1 天前
安全审计
安装于
amp1
cline1
opencode1
cursor1
kimi-cli1
codex1
| — |
| — |
| Comma-separated CloudEvents types to subscribe to |
--project | — | — | GCP project ID for Pub/Sub resources |
--subscription | — | — | Existing Pub/Sub subscription name (skip setup) |
--max-messages | — | 10 | Max messages per pull batch (default: 10) |
--poll-interval | — | 5 | Seconds between pulls (default: 5) |
--once | — | — | Pull once and exit |
--cleanup | — | — | Delete created Pub/Sub resources on exit |
--no-ack | — | — | Don't auto-acknowledge messages |
--output-dir | — | — | Write each event to a separate JSON file in this directory |
gws events +subscribe --target '//chat.googleapis.com/spaces/SPACE' --event-types 'google.workspace.chat.message.v1.created' --project my-project
gws events +subscribe --subscription projects/p/subscriptions/my-sub --once
gws events +subscribe ... --cleanup --output-dir ./events
[!CAUTION] This is a write command — confirm with the user before executing.
Weekly Installs
1
Repository
First Seen
1 day ago
Security Audits
Installed on
amp1
cline1
opencode1
cursor1
kimi-cli1
codex1
Azure 升级评估与自动化工具 - 轻松迁移 Functions 计划、托管层级和 SKU
79,900 周安装
QR Coin 拍卖:在 Base 区块链上竞标二维码 URL 展示位 | 区块链拍卖工具
1 周安装
Hydrex 治理指南:锁定 HYDX 获取投票权,参与流动性池投票与单边挖矿
1 周安装
Base技能:Bankrbot/Clawdbot-Skill核心基础功能,GitHub星标984+的开发者工具
1 周安装
Bankr Signals - Base区块链交易信号验证与复制工具,提升交易绩效
1 周安装
Vue.js 官方文档与最佳实践指南 - 从入门到精通,涵盖响应式、TypeScript、组件等核心主题
1 周安装
SQLAlchemy 2.0 中文文档与参考指南 - Python ORM 数据库工具完整技能
1 周安装