recipe-share-doc-and-notify
作者: Google
分享一個 Google Docs 文件並賦予編輯權限,然後透過電子郵件將連結發送給協作者。
npx skills add https://github.com/googleworkspace/cli --skill recipe-share-doc-and-notifyShare a Google Doc and Notify Collaborators
PREREQUISITE: Load the following skills to execute this recipe:
gws-drive,gws-docs,gws-gmail
Share a Google Docs document with edit access and email collaborators the link.
Steps
- Find the doc:
gws drive files list --params '{"q": "name contains '\''Project Brief'\'' and mimeType = '\''application/vnd.google-apps.document'\''"}' - Share with editor access:
gws drive permissions create --params '{"fileId": "DOC_ID"}' --json '{"role": "writer", "type": "user", "emailAddress": "[email protected]"}' - Email the link:
gws gmail +send --to [email protected] --subject 'Please review: Project Brief' --body 'I have shared the project brief with you: https://docs.google.com/document/d/DOC_ID'
來自 Google 的更多技能
gws-modelarmor-sanitize-response
Google
Google Model Armor:透過 Model Armor 模板淨化模型回應。
gws-people
Google
管理聯絡人與個人資料。
gws-shared
Google
gws CLI:用於認證、全域旗標與輸出格式化的共享模式。
gws-sheets
Google
Google Sheets:讀取和寫入試算表。
gws-sheets-append
Google
Google Sheets:將一行資料附加到試算表中。
gws-sheets-read
Google
從試算表中讀取值。
gws-slides
Google
Google Slides:讀取與撰寫簡報。
gws-tasks
Google
Google Tasks:管理任務清單與任務。