Skip to content
Open
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
2 changes: 2 additions & 0 deletions docs/commands.generated.md
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,8 @@ Generated from `gog schema --json`.
- [`gog tasks (task) update (edit,set) <tasklistId> <taskId> [flags]`](commands/gog-tasks-update.md) - Update a task
- [`gog time <command> [flags]`](commands/gog-time.md) - Local time utilities
- [`gog time now [flags]`](commands/gog-time-now.md) - Show current time
- [`gog update <command> [flags]`](commands/gog-update.md) - Check gogcli release status
- [`gog update status (check) [flags]`](commands/gog-update-status.md) - Show installed and latest gogcli release status
- [`gog upload (up,put) <localPath> [flags]`](commands/gog-upload.md) - Upload a file to Drive (alias for 'drive upload')
- [`gog version [flags]`](commands/gog-version.md) - Print version
- [`gog whoami (who-am-i) [flags]`](commands/gog-whoami.md) - Show your profile (alias for 'people me')
Expand Down
5 changes: 4 additions & 1 deletion docs/commands/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Every `gog` command has a generated docs page. The source of truth is the live CLI schema; run `make docs-commands` after changing command names, flags, help text, aliases, or arguments.

Generated pages: 700.
Generated pages: 702.

## Top-level Commands

Expand Down Expand Up @@ -46,6 +46,7 @@ Generated pages: 700.
- [gog status](gog-status.md) - Show auth/config status (alias for 'auth status')
- [gog tasks](gog-tasks.md) - Google Tasks
- [gog time](gog-time.md) - Local time utilities
- [gog update](gog-update.md) - Check gogcli release status
- [gog upload](gog-upload.md) - Upload a file to Drive (alias for 'drive upload')
- [gog version](gog-version.md) - Print version
- [gog whoami](gog-whoami.md) - Show your profile (alias for 'people me')
Expand Down Expand Up @@ -724,6 +725,8 @@ Generated pages: 700.
- [gog tasks update](gog-tasks-update.md) - Update a task
- [gog time](gog-time.md) - Local time utilities
- [gog time now](gog-time-now.md) - Show current time
- [gog update](gog-update.md) - Check gogcli release status
- [gog update status](gog-update-status.md) - Show installed and latest gogcli release status
- [gog upload](gog-upload.md) - Upload a file to Drive (alias for 'drive upload')
- [gog version](gog-version.md) - Print version
- [gog whoami](gog-whoami.md) - Show your profile (alias for 'people me')
Expand Down
47 changes: 47 additions & 0 deletions docs/commands/gog-update-status.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# `gog update status`

> Generated from `gog schema --json`. Do not edit this page by hand; run `make docs-commands`.

Show installed and latest gogcli release status

## Usage

```bash
gog update status (check) [flags]
```

## Parent

- [gog update](gog-update.md)

## Flags

| Flag | Type | Default | Help |
| --- | --- | --- | --- |
| `--access-token` | `string` | | Use provided access token directly (bypasses stored refresh tokens; token expires in ~1h) |
| `-a`<br>`--account`<br>`--acct` | `string` | | Account email, alias, or auto for authenticated Google API commands |
| `--client` | `string` | | OAuth client name (selects stored credentials + token bucket) |
| `--color` | `string` | auto | Color output: auto\|always\|never |
| `--disable-commands` | `string` | | Comma-separated list of disabled commands; dot paths allowed |
| `-n`<br>`--dry-run`<br>`--dryrun`<br>`--noop`<br>`--preview` | `bool` | | Do not make changes; print intended actions and exit successfully |
| `--enable-commands` | `string` | | Comma-separated list of enabled command prefixes; dot paths allowed (restricts CLI) |
| `--enable-commands-exact` | `string` | | Comma-separated list of exact enabled commands; dot paths allowed and parent commands do not enable children |
| `-y`<br>`--force`<br>`--assume-yes`<br>`--yes` | `bool` | | Skip confirmations for destructive commands |
| `--gmail-no-send` | `bool` | false | Block Gmail send operations (agent safety) |
| `-h`<br>`--help` | `kong.helpFlag` | | Show context-sensitive help. |
| `--home` | `string` | | Override gogcli config/data/state/cache root (equivalent to GOG_HOME) |
| `-j`<br>`--json`<br>`--machine` | `bool` | false | Output JSON to stdout (best for scripting) |
| `--no-input`<br>`--non-interactive`<br>`--noninteractive` | `bool` | | Never prompt; fail instead (useful for CI) |
| `-p`<br>`--plain`<br>`--tsv` | `bool` | false | Output stable, parseable text to stdout (TSV; no colors) |
| `--readonly` | `bool` | false | Block mutating API requests at runtime; auth add also requests read-only OAuth scopes |
| `--results-only` | `bool` | | In JSON mode, emit only the primary result (drops envelope fields like nextPageToken) |
| `--select`<br>`--pick`<br>`--project` | `string` | | In JSON mode, select comma-separated fields (best-effort; supports dot paths). Desire path: use --fields for most commands. |
| `--timeout` | `time.Duration` | 10s | HTTP timeout for GitHub release metadata |
| `-v`<br>`--verbose` | `bool` | | Enable verbose logging |
| `--version` | `kong.VersionFlag` | | Print version and exit |
| `--wrap-untrusted` | `bool` | false | In JSON/raw output, wrap fetched text fields in external untrusted-content markers |

## See Also

- [gog update](gog-update.md)
- [Command index](README.md)
50 changes: 50 additions & 0 deletions docs/commands/gog-update.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# `gog update`

> Generated from `gog schema --json`. Do not edit this page by hand; run `make docs-commands`.

Check gogcli release status

## Usage

```bash
gog update <command> [flags]
```

## Parent

- [gog](gog.md)

## Subcommands

- [gog update status](gog-update-status.md) - Show installed and latest gogcli release status

## Flags

| Flag | Type | Default | Help |
| --- | --- | --- | --- |
| `--access-token` | `string` | | Use provided access token directly (bypasses stored refresh tokens; token expires in ~1h) |
| `-a`<br>`--account`<br>`--acct` | `string` | | Account email, alias, or auto for authenticated Google API commands |
| `--client` | `string` | | OAuth client name (selects stored credentials + token bucket) |
| `--color` | `string` | auto | Color output: auto\|always\|never |
| `--disable-commands` | `string` | | Comma-separated list of disabled commands; dot paths allowed |
| `-n`<br>`--dry-run`<br>`--dryrun`<br>`--noop`<br>`--preview` | `bool` | | Do not make changes; print intended actions and exit successfully |
| `--enable-commands` | `string` | | Comma-separated list of enabled command prefixes; dot paths allowed (restricts CLI) |
| `--enable-commands-exact` | `string` | | Comma-separated list of exact enabled commands; dot paths allowed and parent commands do not enable children |
| `-y`<br>`--force`<br>`--assume-yes`<br>`--yes` | `bool` | | Skip confirmations for destructive commands |
| `--gmail-no-send` | `bool` | false | Block Gmail send operations (agent safety) |
| `-h`<br>`--help` | `kong.helpFlag` | | Show context-sensitive help. |
| `--home` | `string` | | Override gogcli config/data/state/cache root (equivalent to GOG_HOME) |
| `-j`<br>`--json`<br>`--machine` | `bool` | false | Output JSON to stdout (best for scripting) |
| `--no-input`<br>`--non-interactive`<br>`--noninteractive` | `bool` | | Never prompt; fail instead (useful for CI) |
| `-p`<br>`--plain`<br>`--tsv` | `bool` | false | Output stable, parseable text to stdout (TSV; no colors) |
| `--readonly` | `bool` | false | Block mutating API requests at runtime; auth add also requests read-only OAuth scopes |
| `--results-only` | `bool` | | In JSON mode, emit only the primary result (drops envelope fields like nextPageToken) |
| `--select`<br>`--pick`<br>`--project` | `string` | | In JSON mode, select comma-separated fields (best-effort; supports dot paths). Desire path: use --fields for most commands. |
| `-v`<br>`--verbose` | `bool` | | Enable verbose logging |
| `--version` | `kong.VersionFlag` | | Print version and exit |
| `--wrap-untrusted` | `bool` | false | In JSON/raw output, wrap fetched text fields in external untrusted-content markers |

## See Also

- [gog](gog.md)
- [Command index](README.md)
1 change: 1 addition & 0 deletions docs/commands/gog.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ gog <command> [flags]
- [gog status](gog-status.md) - Show auth/config status (alias for 'auth status')
- [gog tasks](gog-tasks.md) - Google Tasks
- [gog time](gog-time.md) - Local time utilities
- [gog update](gog-update.md) - Check gogcli release status
- [gog upload](gog-upload.md) - Upload a file to Drive (alias for 'drive upload')
- [gog version](gog-version.md) - Print version
- [gog whoami](gog-whoami.md) - Show your profile (alias for 'people me')
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/gmail_watch_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func gmailWatchStatePath(layout config.Layout, account string) (string, error) {
func sanitizeAccountForPath(account string) string {
clean := strings.TrimSpace(strings.ToLower(account))
if clean == "" {
return "unknown"
return trackingUnknown
}

var builder strings.Builder
Expand Down
1 change: 1 addition & 0 deletions internal/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ type CLI struct {
Maps MapsCmd `cmd:"" aliases:"map" help:"Google Maps"`
Classroom ClassroomCmd `cmd:"" aliases:"class" help:"Google Classroom"`
Time TimeCmd `cmd:"" help:"Local time utilities"`
Update UpdateCmd `cmd:"" help:"Check gogcli release status"`
Gmail GmailCmd `cmd:"" aliases:"mail,email" help:"Gmail"`
Chat ChatCmd `cmd:"" help:"Google Chat"`
Contacts ContactsCmd `cmd:"" aliases:"contact" help:"Google Contacts"`
Expand Down
Loading
Loading