Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/shared-hook-state-authority.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@googleworkspace/cli": patch
---

Add a read-only, fail-closed authority contract, exact forward decision, and verifier for shared Git hook state.
7 changes: 7 additions & 0 deletions crates/google-workspace-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ mod schema;
mod services;
mod setup;
mod setup_tui;
mod shared_hook_state;
mod text;
mod timezone;
mod token_storage;
Expand All @@ -47,6 +48,11 @@ use error::{print_error_json, GwsError};

#[tokio::main]
async fn main() {
let process_args: Vec<String> = std::env::args().collect();
if process_args.get(1).map(String::as_str) == Some(shared_hook_state::COMMAND_NAME) {
std::process::exit(shared_hook_state::run_cli(&process_args));
}

// Load .env file if present (silently ignored if missing)
let _ = dotenvy::dotenv();

Expand Down Expand Up @@ -443,6 +449,7 @@ fn print_usage() {
println!("USAGE:");
println!(" gws <service> <resource> [sub-resource] <method> [flags]");
println!(" gws schema <service.resource.method> [--resolve-refs]");
println!(" gws shared-hook-state");
println!();
println!("EXAMPLES:");
println!(" gws drive files list --params '{{\"pageSize\": 10}}'");
Expand Down
Loading
Loading