From 7ae3a94812e9dd0648af8f1ef61704944b1de457 Mon Sep 17 00:00:00 2001 From: googleworkspace-bot Date: Tue, 10 Mar 2026 20:14:33 +0000 Subject: [PATCH 1/2] chore: release versions --- .changeset/add-recipient-flags.md | 5 ----- CHANGELOG.md | 6 ++++++ Cargo.lock | 2 +- Cargo.toml | 2 +- package.json | 2 +- 5 files changed, 9 insertions(+), 8 deletions(-) delete mode 100644 .changeset/add-recipient-flags.md diff --git a/.changeset/add-recipient-flags.md b/.changeset/add-recipient-flags.md deleted file mode 100644 index 41a6de5d..00000000 --- a/.changeset/add-recipient-flags.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@googleworkspace/cli": minor ---- - -Add `--cc` and `--bcc` flags to `+send`, `--to` and `--bcc` to `+reply` and `+reply-all`, and `--bcc` to `+forward`. diff --git a/CHANGELOG.md b/CHANGELOG.md index 7fec35d1..980bd7a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # @googleworkspace/cli +## 0.11.0 + +### Minor Changes + +- 4d4b09f: Add `--cc` and `--bcc` flags to `+send`, `--to` and `--bcc` to `+reply` and `+reply-all`, and `--bcc` to `+forward`. + ## 0.10.0 ### Minor Changes diff --git a/Cargo.lock b/Cargo.lock index 362f8e89..c769abd1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -845,7 +845,7 @@ dependencies = [ [[package]] name = "gws" -version = "0.10.0" +version = "0.11.0" dependencies = [ "aes-gcm", "anyhow", diff --git a/Cargo.toml b/Cargo.toml index 5376c529..cbe025f1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ [package] name = "gws" -version = "0.10.0" +version = "0.11.0" edition = "2021" description = "Google Workspace CLI — dynamic command surface from Discovery Service" license = "Apache-2.0" diff --git a/package.json b/package.json index 3cc39bf8..984f63f6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@googleworkspace/cli", - "version": "0.10.0", + "version": "0.11.0", "private": true, "description": "Google Workspace CLI — dynamic command surface from Discovery Service", "license": "Apache-2.0", From ce8b77d20c5b1d0aef5824a941e585175e175ee9 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 10 Mar 2026 20:15:08 +0000 Subject: [PATCH 2/2] chore: regenerate skills [skip ci] --- skills/gws-gmail-forward/SKILL.md | 22 +++++++++------------- skills/gws-gmail-reply-all/SKILL.md | 23 ++++++++++------------- skills/gws-gmail-reply/SKILL.md | 23 ++++++++++------------- skills/gws-gmail-send/SKILL.md | 20 ++++++++++---------- 4 files changed, 39 insertions(+), 49 deletions(-) diff --git a/skills/gws-gmail-forward/SKILL.md b/skills/gws-gmail-forward/SKILL.md index 3b23c1f3..a0fbbda7 100644 --- a/skills/gws-gmail-forward/SKILL.md +++ b/skills/gws-gmail-forward/SKILL.md @@ -24,15 +24,15 @@ gws gmail +forward --message-id --to ## Flags -| Flag | Required | Default | Description | -| -------------- | -------- | ------- | --------------------------------------------------------------- | -| `--message-id` | ✓ | — | Gmail message ID to forward | -| `--to` | ✓ | — | Recipient email address(es), comma-separated | -| `--from` | — | — | Sender address (for send-as/alias; omit to use account default) | -| `--cc` | — | — | CC email address(es), comma-separated | -| `--bcc` | — | — | BCC email address(es), comma-separated | -| `--body` | — | — | Optional note to include above the forwarded message | -| `--dry-run` | — | — | Show the request that would be sent without executing it | +| Flag | Required | Default | Description | +|------|----------|---------|-------------| +| `--message-id` | ✓ | — | Gmail message ID to forward | +| `--to` | ✓ | — | Recipient email address(es), comma-separated | +| `--from` | — | — | Sender address (for send-as/alias; omit to use account default) | +| `--cc` | — | — | CC email address(es), comma-separated | +| `--bcc` | — | — | BCC email address(es), comma-separated | +| `--body` | — | — | Optional note to include above the forwarded message | +| `--dry-run` | — | — | Show the request that would be sent without executing it | ## Examples @@ -46,10 +46,6 @@ gws gmail +forward --message-id 18f1a2b3c4d --to dave@example.com --bcc secret@e ## Tips - Includes the original message with sender, date, subject, and recipients. -- Sends the forward as a new message rather than forcing it into the original thread. - -> [!CAUTION] -> This is a **write** command — confirm with the user before executing. ## See Also diff --git a/skills/gws-gmail-reply-all/SKILL.md b/skills/gws-gmail-reply-all/SKILL.md index 2c9b39c3..d7e7c9cd 100644 --- a/skills/gws-gmail-reply-all/SKILL.md +++ b/skills/gws-gmail-reply-all/SKILL.md @@ -24,16 +24,16 @@ gws gmail +reply-all --message-id --body ## Flags -| Flag | Required | Default | Description | -| -------------- | -------- | ------- | ------------------------------------------------------------------- | -| `--message-id` | ✓ | — | Gmail message ID to reply to | -| `--body` | ✓ | — | Reply body (plain text) | -| `--from` | — | — | Sender address (for send-as/alias; omit to use account default) | -| `--to` | — | — | Additional To email address(es), comma-separated | -| `--cc` | — | — | Additional CC email address(es), comma-separated | -| `--bcc` | — | — | BCC email address(es), comma-separated | -| `--remove` | — | — | Exclude recipients from the outgoing reply, comma-separated emails | -| `--dry-run` | — | — | Show the request that would be sent without executing it | +| Flag | Required | Default | Description | +|------|----------|---------|-------------| +| `--message-id` | ✓ | — | Gmail message ID to reply to | +| `--body` | ✓ | — | Reply body (plain text) | +| `--from` | — | — | Sender address (for send-as/alias; omit to use account default) | +| `--to` | — | — | Additional To email address(es), comma-separated | +| `--cc` | — | — | Additional CC email address(es), comma-separated | +| `--bcc` | — | — | BCC email address(es), comma-separated | +| `--remove` | — | — | Exclude recipients from the outgoing reply (comma-separated emails) | +| `--dry-run` | — | — | Show the request that would be sent without executing it | ## Examples @@ -54,9 +54,6 @@ gws gmail +reply-all --message-id 18f1a2b3c4d --body 'Reply' --bcc secret@exampl - Use --remove to exclude recipients from the outgoing reply, including the sender or Reply-To target. - The command fails if no To recipient remains after exclusions and --to additions. -> [!CAUTION] -> This is a **write** command — confirm with the user before executing. - ## See Also - [gws-shared](../gws-shared/SKILL.md) — Global flags and auth diff --git a/skills/gws-gmail-reply/SKILL.md b/skills/gws-gmail-reply/SKILL.md index c0607ac4..b14ad354 100644 --- a/skills/gws-gmail-reply/SKILL.md +++ b/skills/gws-gmail-reply/SKILL.md @@ -24,15 +24,15 @@ gws gmail +reply --message-id --body ## Flags -| Flag | Required | Default | Description | -| -------------- | -------- | ------- | --------------------------------------------------------------- | -| `--message-id` | ✓ | — | Gmail message ID to reply to | -| `--body` | ✓ | — | Reply body (plain text) | -| `--from` | — | — | Sender address (for send-as/alias; omit to use account default) | -| `--to` | — | — | Additional To email address(es), comma-separated | -| `--cc` | — | — | Additional CC email address(es), comma-separated | -| `--bcc` | — | — | BCC email address(es), comma-separated | -| `--dry-run` | — | — | Show the request that would be sent without executing it | +| Flag | Required | Default | Description | +|------|----------|---------|-------------| +| `--message-id` | ✓ | — | Gmail message ID to reply to | +| `--body` | ✓ | — | Reply body (plain text) | +| `--from` | — | — | Sender address (for send-as/alias; omit to use account default) | +| `--to` | — | — | Additional To email address(es), comma-separated | +| `--cc` | — | — | Additional CC email address(es), comma-separated | +| `--bcc` | — | — | BCC email address(es), comma-separated | +| `--dry-run` | — | — | Show the request that would be sent without executing it | ## Examples @@ -47,12 +47,9 @@ gws gmail +reply --message-id 18f1a2b3c4d --body 'Reply' --bcc secret@example.co - Automatically sets In-Reply-To, References, and threadId headers. - Quotes the original message in the reply body. -- Use --to to add extra recipients to the To field. +- --to adds extra recipients to the To field. - For reply-all, use +reply-all instead. -> [!CAUTION] -> This is a **write** command — confirm with the user before executing. - ## See Also - [gws-shared](../gws-shared/SKILL.md) — Global flags and auth diff --git a/skills/gws-gmail-send/SKILL.md b/skills/gws-gmail-send/SKILL.md index 09955da7..b1b270ee 100644 --- a/skills/gws-gmail-send/SKILL.md +++ b/skills/gws-gmail-send/SKILL.md @@ -19,19 +19,19 @@ Send an email ## Usage ```bash -gws gmail +send --to --subject --body +gws gmail +send --to --subject --body ``` ## Flags -| Flag | Required | Default | Description | -| ----------- | -------- | ------- | -------------------------------------------------------- | -| `--to` | ✓ | — | Recipient email address(es), comma-separated | -| `--subject` | ✓ | — | Email subject | -| `--body` | ✓ | — | Email body (plain text) | -| `--cc` | — | — | CC email address(es), comma-separated | -| `--bcc` | — | — | BCC email address(es), comma-separated | -| `--dry-run` | — | — | Show the request that would be sent without executing it | +| Flag | Required | Default | Description | +|------|----------|---------|-------------| +| `--to` | ✓ | — | Recipient email address(es), comma-separated | +| `--subject` | ✓ | — | Email subject | +| `--body` | ✓ | — | Email body (plain text) | +| `--cc` | — | — | CC email address(es), comma-separated | +| `--bcc` | — | — | BCC email address(es), comma-separated | +| `--dry-run` | — | — | Show the request that would be sent without executing it | ## Examples @@ -44,7 +44,7 @@ gws gmail +send --to alice@example.com --subject 'Hello' --body 'Hi!' --bcc secr ## Tips - Handles RFC 2822 formatting and base64 encoding automatically. -- For HTML bodies or attachments, use the raw API instead: `gws gmail users messages send --json '...'` +- For HTML bodies or attachments, use the raw API instead: gws gmail users messages send --json '...' > [!CAUTION] > This is a **write** command — confirm with the user before executing.