mirror of
https://github.com/googleworkspace/cli.git
synced 2026-09-14 16:47:13 +08:00
029e5def2b
* feat: extract google-workspace library crate and restructure as cargo workspace - Create crates/google-workspace/ with public modules: discovery, error, services, validate, client - Move CLI binary to crates/cli/ (package: google-workspace-cli, binary: gws) - Root Cargo.toml is now workspace-only - Binary modules use thin re-exports from library (zero behavioral changes) - Discovery fetch_discovery_document accepts cache_dir parameter for library consumers - Break output.rs / error.rs circular dep by moving char detection to library validate module - Update CI workflows for workspace (--workspace flags, path filters) - Update dist-workspace.toml and policy.yml for new crate locations Closes #386 * refactor: rename crates/cli to crates/google-workspace-cli * chore: sync CLI version to 0.20.1 and regenerate skills * chore: update labeler paths for workspace crate layout * fix: update flake.nix to read version from CLI crate Cargo.toml * fix: use tokio::fs for non-blocking I/O in library discovery cache * docs: update AGENTS.md source layout for workspace structure * docs: add crate-level READMEs for crates.io --------- Co-authored-by: jpoehnelt-bot <jpoehnelt-bot@users.noreply.github.com>
1.0 KiB
1.0 KiB
google-workspace-cli
One CLI for all of Google Workspace — built for humans and AI agents.
gws dynamically generates its command surface at runtime by reading Google's Discovery Service. Drive, Gmail, Calendar, and every Workspace API — zero boilerplate, structured JSON output, 40+ agent skills included.
Install
npm install -g @googleworkspace/cli # npm
cargo install google-workspace-cli # crates.io
nix run github:googleworkspace/cli # nix
Pre-built binaries are available on the GitHub Releases page.
Quick Start
gws auth login
gws drive files list --params '{"pageSize": 5}'
gws gmail users.messages list --params '{"maxResults": 3}'
Documentation
See the full README for authentication setup, helper commands, agent skills, and more.
License
Apache-2.0 — see LICENSE.