Skip to content
Merged
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ linters:
json: snake
yaml: snake
overrides:
- pkg: github.com/steipete/gogcli/internal/cmd
- pkg: github.com/openclaw/gogcli/internal/cmd
ignore: true
- pkg: github.com/steipete/gogcli/internal/googleauth
- pkg: github.com/openclaw/gogcli/internal/googleauth
ignore: true
wsl_v5:
allow-first-in-block: true
Expand Down Expand Up @@ -149,4 +149,4 @@ formatters:
settings:
goimports:
local-prefixes:
- github.com/steipete/gogcli
- github.com/openclaw/gogcli
12 changes: 6 additions & 6 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ builds:
- -trimpath
ldflags: >-
-s -w
-X github.com/steipete/gogcli/internal/cmd.version={{ .Tag }}
-X github.com/steipete/gogcli/internal/cmd.commit={{ if index .Env "GOG_COMMIT" }}{{ index .Env "GOG_COMMIT" }}{{ else }}{{ .ShortCommit }}{{ end }}
-X github.com/steipete/gogcli/internal/cmd.date={{ .CommitDate }}
-X github.com/openclaw/gogcli/internal/cmd.version={{ .Tag }}
-X github.com/openclaw/gogcli/internal/cmd.commit={{ if index .Env "GOG_COMMIT" }}{{ index .Env "GOG_COMMIT" }}{{ else }}{{ .ShortCommit }}{{ end }}
-X github.com/openclaw/gogcli/internal/cmd.date={{ .CommitDate }}
env:
- CGO_ENABLED=0
- "GOCACHEPROG="
Expand Down Expand Up @@ -60,9 +60,9 @@ builds:
- -trimpath
ldflags: >-
-s -w
-X github.com/steipete/gogcli/internal/cmd.version={{ .Tag }}
-X github.com/steipete/gogcli/internal/cmd.commit={{ if index .Env "GOG_COMMIT" }}{{ index .Env "GOG_COMMIT" }}{{ else }}{{ .ShortCommit }}{{ end }}
-X github.com/steipete/gogcli/internal/cmd.date={{ .CommitDate }}
-X github.com/openclaw/gogcli/internal/cmd.version={{ .Tag }}
-X github.com/openclaw/gogcli/internal/cmd.commit={{ if index .Env "GOG_COMMIT" }}{{ index .Env "GOG_COMMIT" }}{{ else }}{{ .ShortCommit }}{{ end }}
-X github.com/openclaw/gogcli/internal/cmd.date={{ .CommitDate }}
env:
- AR=/usr/bin/ar
- CC=/usr/bin/clang
Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

## Coding Style & Naming Conventions

- Formatting: `make fmt` (`goimports` local prefix `github.com/steipete/gogcli` + `gofumpt`).
- Formatting: `make fmt` (`goimports` local prefix `github.com/openclaw/gogcli` + `gofumpt`).
- Output: keep stdout parseable (`--json` / `--plain`); send human hints/progress to stderr.
- Gmail labels: treat label IDs as case-sensitive opaque tokens; only case-fold label names for name lookup.

Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Unreleased

- Install: move the Go module to `github.com/openclaw/gogcli`; new releases install with `go install github.com/openclaw/gogcli/cmd/gog@latest` instead of the former `github.com/steipete/gogcli` path.
- Docs: add opt-in `--locate` and `--tab` to `docs comments list`, resolving all comment locations from one shared document fetch. (#961, #965) — thanks @ryo-touch.
- Gmail: allow `GOG_GMAIL_AUTO_FROM_ADDRESSED_ALIAS` to enable the existing addressed-alias sender policy for replies and reply-context drafts. (#964) — thanks @ronny-rentner.
- Gmail: add opt-in compact 0-based attachment references across search, message, thread, draft, and download workflows. (#963) — thanks @ronny-rentner.
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ ARG COMMIT=unknown
ARG DATE=unknown

RUN CGO_ENABLED=0 GOOS=linux go build -trimpath \
-ldflags="-s -w -X github.com/steipete/gogcli/internal/cmd.version=${VERSION} -X github.com/steipete/gogcli/internal/cmd.commit=${COMMIT} -X github.com/steipete/gogcli/internal/cmd.date=${DATE}" \
-ldflags="-s -w -X github.com/openclaw/gogcli/internal/cmd.version=${VERSION} -X github.com/openclaw/gogcli/internal/cmd.commit=${COMMIT} -X github.com/openclaw/gogcli/internal/cmd.date=${DATE}" \
-o /out/gog ./cmd/gog

FROM alpine:${ALPINE_VERSION}

LABEL org.opencontainers.image.source="https://github.com/steipete/gogcli"
LABEL org.opencontainers.image.source="https://github.com/openclaw/gogcli"
LABEL org.opencontainers.image.description="Google services CLI for terminal automation"
LABEL org.opencontainers.image.licenses="MIT"

Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ CMD := ./cmd/gog
VERSION := $(shell git describe --tags --always --dirty 2>/dev/null || echo dev)
COMMIT := $(shell git rev-parse --short=12 HEAD 2>/dev/null || echo "")
DATE := $(shell date -u +%Y-%m-%dT%H:%M:%SZ)
LDFLAGS := -X github.com/steipete/gogcli/internal/cmd.version=$(VERSION) -X github.com/steipete/gogcli/internal/cmd.commit=$(COMMIT) -X github.com/steipete/gogcli/internal/cmd.date=$(DATE)
LDFLAGS := -X github.com/openclaw/gogcli/internal/cmd.version=$(VERSION) -X github.com/openclaw/gogcli/internal/cmd.commit=$(COMMIT) -X github.com/openclaw/gogcli/internal/cmd.date=$(DATE)
# `make lint` already covers vet-equivalent checks; skip duplicate work in `make test`.
GO_TEST_FLAGS ?= -vet=off
TEST_FLAGS ?=
Expand Down Expand Up @@ -98,14 +98,14 @@ tools:
fi

fmt: tools
@$(GOIMPORTS) -local github.com/steipete/gogcli -w .
@$(GOIMPORTS) -local github.com/openclaw/gogcli -w .
@$(GOFUMPT) -w .

fmt-check: tools
@set -e; \
tmp="$$(mktemp)"; \
trap 'rm -f "$$tmp"' EXIT; \
$(GOIMPORTS) -local github.com/steipete/gogcli -l . > "$$tmp"; \
$(GOIMPORTS) -local github.com/openclaw/gogcli -l . > "$$tmp"; \
$(GOFUMPT) -l . >> "$$tmp"; \
unformatted="$$(sort -u "$$tmp")"; \
if [ -n "$$unformatted" ]; then \
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ brew install openclaw/tap/gogcli
gog --version
```

With Go:

```bash
go install github.com/openclaw/gogcli/cmd/gog@latest
gog --version
```

Docker images, Windows archives, raw macOS/Linux binaries, and source builds
are covered in the [install guide](docs/install.md).

Expand Down
2 changes: 1 addition & 1 deletion build-safe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ go run ./cmd/bake-safety-profile "$PROFILE" "$GEN_FILE"
VERSION=$(git describe --tags --always --dirty 2>/dev/null || echo dev)
COMMIT=$(git rev-parse --short=12 HEAD 2>/dev/null || echo "")
DATE=$(date -u +%Y-%m-%dT%H:%M:%SZ)
LDFLAGS="-X github.com/steipete/gogcli/internal/cmd.version=${VERSION}-safe -X github.com/steipete/gogcli/internal/cmd.commit=${COMMIT} -X github.com/steipete/gogcli/internal/cmd.date=${DATE}"
LDFLAGS="-X github.com/openclaw/gogcli/internal/cmd.version=${VERSION}-safe -X github.com/openclaw/gogcli/internal/cmd.commit=${COMMIT} -X github.com/openclaw/gogcli/internal/cmd.date=${DATE}"

mkdir -p "$(dirname "$OUTPUT")"
go build -tags safety_profile -ldflags "$LDFLAGS" -o "$OUTPUT" ./cmd/gog
Expand Down
2 changes: 1 addition & 1 deletion cmd/bake-safety-profile/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strconv"
"strings"

"github.com/steipete/gogcli/internal/safetyprofile"
"github.com/openclaw/gogcli/internal/safetyprofile"
)

const usage = `Usage: bake-safety-profile <profile.yaml> <output.go>` + "\n"
Expand Down
2 changes: 1 addition & 1 deletion cmd/bake-safety-profile/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strings"
"testing"

"github.com/steipete/gogcli/internal/safetyprofile"
"github.com/openclaw/gogcli/internal/safetyprofile"
)

func TestGenerateProducesParseableGoWithExpectedHashes(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions cmd/gog/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package main
import (
"os"

"github.com/steipete/gogcli/internal/cmd"
_ "github.com/steipete/gogcli/internal/tzembed" // Embed IANA timezone database for Windows support
"github.com/openclaw/gogcli/internal/cmd"
_ "github.com/openclaw/gogcli/internal/tzembed" // Embed IANA timezone database for Windows support
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion cmd/gog/tzdata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func TestEmbeddedTZData(t *testing.T) {
t.Fatalf("read main.go: %v", err)
}

if !strings.Contains(string(source), `_ "github.com/steipete/gogcli/internal/tzembed"`) {
if !strings.Contains(string(source), `_ "github.com/openclaw/gogcli/internal/tzembed"`) {
t.Fatalf("main.go must blank-import internal/tzembed")
}

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/steipete/gogcli
module github.com/openclaw/gogcli

go 1.26.5

Expand Down
10 changes: 5 additions & 5 deletions internal/app/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ import (
"google.golang.org/api/tasks/v1"
"google.golang.org/api/youtube/v3"

"github.com/steipete/gogcli/internal/config"
"github.com/steipete/gogcli/internal/googleapi"
"github.com/steipete/gogcli/internal/googleauth"
"github.com/steipete/gogcli/internal/secrets"
"github.com/steipete/gogcli/internal/zoom"
"github.com/openclaw/gogcli/internal/config"
"github.com/openclaw/gogcli/internal/googleapi"
"github.com/openclaw/gogcli/internal/googleauth"
"github.com/openclaw/gogcli/internal/secrets"
"github.com/openclaw/gogcli/internal/zoom"
)

type IO struct {
Expand Down
4 changes: 2 additions & 2 deletions internal/authclient/authclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"fmt"
"strings"

"github.com/steipete/gogcli/internal/config"
"github.com/steipete/gogcli/internal/secrets"
"github.com/openclaw/gogcli/internal/config"
"github.com/openclaw/gogcli/internal/secrets"
)

type (
Expand Down
4 changes: 2 additions & 2 deletions internal/authclient/authclient_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"errors"
"testing"

"github.com/steipete/gogcli/internal/config"
"github.com/steipete/gogcli/internal/secrets"
"github.com/openclaw/gogcli/internal/config"
"github.com/openclaw/gogcli/internal/secrets"
)

type testSecretsStore struct{}
Expand Down
2 changes: 1 addition & 1 deletion internal/backup/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"strings"
"time"

appconfig "github.com/steipete/gogcli/internal/config"
appconfig "github.com/openclaw/gogcli/internal/config"
)

const formatVersion = 1
Expand Down
2 changes: 1 addition & 1 deletion internal/backup/config_more_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"sync/atomic"
"testing"

appconfig "github.com/steipete/gogcli/internal/config"
appconfig "github.com/openclaw/gogcli/internal/config"
)

var errTestHomeUnavailable = errors.New("home unavailable")
Expand Down
2 changes: 1 addition & 1 deletion internal/backup/config_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"strings"
"sync"

appconfig "github.com/steipete/gogcli/internal/config"
appconfig "github.com/openclaw/gogcli/internal/config"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion internal/backup/config_store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"path/filepath"
"testing"

appconfig "github.com/steipete/gogcli/internal/config"
appconfig "github.com/openclaw/gogcli/internal/config"
)

func testConfigStore(t *testing.T, configPath string) *ConfigStore {
Expand Down
2 changes: 1 addition & 1 deletion internal/backup/gmail/checkpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"strings"
"time"

"github.com/steipete/gogcli/internal/backup"
"github.com/openclaw/gogcli/internal/backup"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions internal/backup/gmail/checkpoint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"testing"
"time"

"github.com/steipete/gogcli/internal/backup"
appconfig "github.com/steipete/gogcli/internal/config"
"github.com/openclaw/gogcli/internal/backup"
appconfig "github.com/openclaw/gogcli/internal/config"
)

func TestCheckpointerFlushesByRowsAndAtCompletion(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/backup/gmail/planner.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"strings"
"time"

"github.com/steipete/gogcli/internal/backup"
"github.com/openclaw/gogcli/internal/backup"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion internal/backup/gmail/planner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"testing"
"time"

"github.com/steipete/gogcli/internal/backup"
"github.com/openclaw/gogcli/internal/backup"
)

func TestBuildMessageShardsFromMessagesBucketsSortsAndChunks(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions internal/cmd/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"os"
"strings"

"github.com/steipete/gogcli/internal/config"
"github.com/steipete/gogcli/internal/googleapi"
"github.com/steipete/gogcli/internal/secrets"
"github.com/openclaw/gogcli/internal/config"
"github.com/openclaw/gogcli/internal/googleapi"
"github.com/openclaw/gogcli/internal/secrets"
)

const (
Expand Down
8 changes: 4 additions & 4 deletions internal/cmd/account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import (

"google.golang.org/api/calendar/v3"

"github.com/steipete/gogcli/internal/app"
"github.com/steipete/gogcli/internal/config"
"github.com/steipete/gogcli/internal/googleapi"
"github.com/steipete/gogcli/internal/secrets"
"github.com/openclaw/gogcli/internal/app"
"github.com/openclaw/gogcli/internal/config"
"github.com/openclaw/gogcli/internal/googleapi"
"github.com/openclaw/gogcli/internal/secrets"
)

type fakeSecretsStore struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/admin_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"math/big"
"strings"

"github.com/steipete/gogcli/internal/errfmt"
"github.com/openclaw/gogcli/internal/errfmt"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/admin_groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

admin "google.golang.org/api/admin/directory/v1"

"github.com/steipete/gogcli/internal/outfmt"
"github.com/steipete/gogcli/internal/ui"
"github.com/openclaw/gogcli/internal/outfmt"
"github.com/openclaw/gogcli/internal/ui"
)

// AdminGroupsCmd manages Workspace groups.
Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/admin_orgunits.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"fmt"
"strings"

"github.com/steipete/gogcli/internal/outfmt"
"github.com/steipete/gogcli/internal/ui"
"github.com/openclaw/gogcli/internal/outfmt"
"github.com/openclaw/gogcli/internal/ui"
)

// AdminOrgunitsCmd manages Workspace organizational units.
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/admin_presentation.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

admin "google.golang.org/api/admin/directory/v1"

"github.com/steipete/gogcli/internal/outfmt"
"github.com/openclaw/gogcli/internal/outfmt"
)

func adminUserColumns() []outfmt.Column[*admin.User] {
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/admin_testutil_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

admin "google.golang.org/api/admin/directory/v1"

"github.com/steipete/gogcli/internal/app"
"github.com/openclaw/gogcli/internal/app"
)

func newAdminTestService(t *testing.T, handler http.Handler) *admin.Service {
Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/admin_users.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
admin "google.golang.org/api/admin/directory/v1"
ggoogleapi "google.golang.org/api/googleapi"

"github.com/steipete/gogcli/internal/outfmt"
"github.com/steipete/gogcli/internal/ui"
"github.com/openclaw/gogcli/internal/outfmt"
"github.com/openclaw/gogcli/internal/ui"
)

// AdminUsersCmd manages Workspace users.
Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/analytics.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
analyticsadmin "google.golang.org/api/analyticsadmin/v1beta"
analyticsdata "google.golang.org/api/analyticsdata/v1beta"

"github.com/steipete/gogcli/internal/outfmt"
"github.com/steipete/gogcli/internal/ui"
"github.com/openclaw/gogcli/internal/outfmt"
"github.com/openclaw/gogcli/internal/ui"
)

type AnalyticsCmd struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/analytics_testutil_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
analyticsadminapi "google.golang.org/api/analyticsadmin/v1beta"
analyticsdataapi "google.golang.org/api/analyticsdata/v1beta"

"github.com/steipete/gogcli/internal/app"
"github.com/openclaw/gogcli/internal/app"
)

func newAnalyticsAdminTestService(t *testing.T, handler http.Handler) *analyticsadminapi.Service {
Expand Down
Loading