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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ To add e.g. `offerings`:
## Conventions

- **Module path**: `github.com/revenuecat/cli`
- **Go version**: 1.25 (pinned via `mise.toml`; run `mise install` once)
- **Go version**: 1.26.8 (pinned via `mise.toml`; run `mise install` once)
- **Formatting**: `gofmt` / `go vet` clean. CI enforces.
- **Output style**: use the semantic helpers on the renderer — `Success` (result), `Info` (progress, dim `·`), `Warn`, `Error`, `Hint` (dimmed next-step guidance), `Title` (brand-red section bar), `Blank` (breathing room), `Notice` (blue-bar callout for trust/safety statements at the moment they matter — never dim these). Colors come from `internal/output/brand.go` and follow the terminal color standard: ANSI semantics carry meaning (green ok, amber warn, deep red errors — red text is danger, regardless of brand), RC violet is the single interaction accent (focus, selection, cursors), and brand red appears only at landmarks (section `Title` bars, card titles, the chat header). Field labels and static text stay neutral. Voice: short, verb-first, say the outcome not the mechanism ("Saving to RevenueCat…" not "Uploading configuration to the v2 endpoint…"); next-step commands go in a `Hint`, not prose.
- **Output snapshots**: human-mode output of representative commands is locked in `internal/cli/testdata/snapshots/*.golden` (TestOutputSnapshots). Any layout/copy change fails CI until regenerated with `UPDATE_SNAPSHOTS=1 go test ./internal/cli/ -run TestOutputSnapshots`; run `make preview` to render the goldens as SVGs in docs/previews/ and review them before committing both. Add a scenario when introducing a new output shape.
Expand All @@ -140,7 +140,7 @@ To add e.g. `offerings`:

```bash
brew install mise # only needed once
mise install # installs Go 1.25 from mise.toml
mise install # installs Go 1.26.8 from mise.toml
go mod tidy
go run ./cmd/rc --help
go test ./...
Expand Down
52 changes: 26 additions & 26 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/revenuecat/cli

go 1.25.13
go 1.26.8

require (
github.com/NimbleMarkets/ntcharts v0.5.1
Expand All @@ -18,16 +18,16 @@ require (
github.com/spf13/cobra v1.10.2
github.com/spf13/pflag v1.0.10
github.com/zalando/go-keyring v0.2.8
golang.org/x/oauth2 v0.36.0
golang.org/x/sys v0.47.0
golang.org/x/term v0.45.0
google.golang.org/api v0.293.0
golang.org/x/oauth2 v0.37.0
golang.org/x/sys v0.48.0
golang.org/x/term v0.46.0
google.golang.org/api v0.300.0
)

require (
cloud.google.com/go/auth v0.23.0 // indirect
cloud.google.com/go/auth/oauth2adapt v0.2.8 // indirect
cloud.google.com/go/compute/metadata v0.9.0 // indirect
cloud.google.com/go/auth v0.24.0 // indirect
cloud.google.com/go/auth/oauth2adapt v0.3.0 // indirect
cloud.google.com/go/compute/metadata v0.10.0 // indirect
github.com/alecthomas/chroma/v2 v2.20.0 // indirect
github.com/apapsch/go-jsonmerge/v2 v2.0.0 // indirect
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
Expand All @@ -48,17 +48,17 @@ require (
github.com/dprotaso/go-yit v0.0.0-20220510233725-9ba8df137936 // indirect
github.com/dustin/go-humanize v1.0.1 // indirect
github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect
github.com/felixge/httpsnoop v1.0.4 // indirect
github.com/felixge/httpsnoop v1.1.0 // indirect
github.com/getkin/kin-openapi v0.144.0 // indirect
github.com/go-logr/logr v1.4.3 // indirect
github.com/go-logr/logr v1.4.4 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-openapi/jsonpointer v0.23.1 // indirect
github.com/go-openapi/swag/jsonname v0.26.0 // indirect
github.com/godbus/dbus/v5 v5.2.2 // indirect
github.com/google/s2a-go v0.1.9 // indirect
github.com/google/s2a-go v0.1.10 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.3.20 // indirect
github.com/googleapis/gax-go/v2 v2.23.0 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.3.22 // indirect
github.com/googleapis/gax-go/v2 v2.26.2 // indirect
github.com/gorilla/css v1.0.1 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/itchyny/timefmt-go v0.1.8 // indirect
Expand All @@ -83,19 +83,19 @@ require (
github.com/yuin/goldmark v1.7.17 // indirect
github.com/yuin/goldmark-emoji v1.0.6 // indirect
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.67.0 // indirect
go.opentelemetry.io/otel v1.44.0 // indirect
go.opentelemetry.io/otel/metric v1.44.0 // indirect
go.opentelemetry.io/otel/trace v1.44.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.69.0 // indirect
go.opentelemetry.io/otel v1.45.0 // indirect
go.opentelemetry.io/otel/metric v1.45.0 // indirect
go.opentelemetry.io/otel/trace v1.45.0 // indirect
go.yaml.in/yaml/v3 v3.0.4 // indirect
golang.org/x/crypto v0.54.0 // indirect
golang.org/x/mod v0.38.0 // indirect
golang.org/x/net v0.57.0 // indirect
golang.org/x/sync v0.22.0 // indirect
golang.org/x/text v0.40.0 // indirect
golang.org/x/tools v0.48.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20260807164820-c8921c73eeea // indirect
google.golang.org/grpc v1.83.1 // indirect
google.golang.org/protobuf v1.36.11 // indirect
golang.org/x/crypto v0.57.0 // indirect
golang.org/x/mod v0.41.0 // indirect
golang.org/x/net v0.59.0 // indirect
golang.org/x/sync v0.23.0 // indirect
golang.org/x/text v0.42.0 // indirect
golang.org/x/tools v0.49.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20260921155816-b14227669459 // indirect
google.golang.org/grpc v1.84.0 // indirect
google.golang.org/protobuf v1.36.12 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading
Loading