Skip to content

Commit 98b44f6

Browse files
committed
feat: add export to auth command validation and update README examples and service list.
1 parent 8f626e7 commit 98b44f6

2 files changed

Lines changed: 2 additions & 31 deletions

File tree

‎README.md‎

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,7 @@ gws drive files list
139139
If your service account has Domain-Wide Delegation enabled, you can impersonate a Workspace user (e.g., an admin) to perform actions on their behalf.
140140

141141
```bash
142-
export GOOGLE_WORKSPACE_CLI_IMPERSONATED_USER=admin@example.com
143-
gws admin users list --domain example.com
142+
export GOOGLE_WORKSPACE_CLI_IMPERSONATED_USER=user@example.com
144143
```
145144

146145
### 4. Pre-obtained Access Token (CI/CD or External)
@@ -170,34 +169,6 @@ The CLI evaluates authentication sources in the following strict order:
170169

171170
*(Note: Environment variables can also be set via a `.env` file in the working directory.)*
172171

173-
## Supported Services
174-
175-
176-
| Command | API | Version | Aliases |
177-
| -------------------- | --------------------- | ------------ | ----------- |
178-
| `gws drive` | Drive | v3 | |
179-
| `gws sheets` | Sheets | v4 | |
180-
| `gws gmail` | Gmail | v1 | |
181-
| `gws calendar` | Calendar | v3 | |
182-
| `gws admin` | Admin SDK (Directory) | directory_v1 | `directory` |
183-
| `gws admin-reports` | Admin SDK (Reports) | reports_v1 | `reports` |
184-
| `gws docs` | Docs | v1 | |
185-
| `gws slides` | Slides | v1 | |
186-
| `gws tasks` | Tasks | v1 | |
187-
| `gws people` | People | v1 | |
188-
| `gws chat` | Chat | v1 | |
189-
| `gws vault` | Vault | v1 | |
190-
| `gws groupssettings` | Groups Settings | v1 | |
191-
| `gws reseller` | Reseller | v1 | |
192-
| `gws licensing` | Licensing | v1 | |
193-
| `gws apps-script` | Apps Script | v1 | `script` |
194-
| `gws classroom` | Classroom | v1 | |
195-
| `gws cloudidentity` | Cloud Identity | v1 | |
196-
| `gws alertcenter` | Alert Center | v1beta1 | |
197-
| `gws forms` | Forms | v1 | |
198-
| `gws keep` | Keep | v1 | |
199-
| `gws meet` | Meet | v2 | |
200-
201172
## Architecture
202173

203174
The CLI uses a **two-phase argument parsing** strategy:

‎src/auth_commands.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1110,7 +1110,7 @@ mod tests {
11101110
let result = handle_auth_command(&args).await;
11111111
assert!(result.is_err());
11121112
match result.unwrap_err() {
1113-
GwsError::Validation(msg) => assert!(msg.contains("login|setup|status|logout")),
1113+
GwsError::Validation(msg) => assert!(msg.contains("login|setup|status|export|logout")),
11141114
other => panic!("Expected Validation error, got: {other:?}"),
11151115
}
11161116
}

0 commit comments

Comments
 (0)