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
2 changes: 1 addition & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ builds:
goos: [linux, darwin, windows]
goarch: [amd64, arm64]
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.ShortCommit}} -X github.com/spoo-me/spoo-cli/internal/api.Version={{.Version}}
- -s -w -X main.version={{.Version}} -X main.commit={{.ShortCommit}} -X github.com/spoo-me/spoo-cli/internal/cmd.Version={{.Version}}

archives:
- formats: [tar.gz]
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
- `Analytics Dashboard` - Terminal charts: traffic over time with a previous-period overlay, browser/OS/country/city/referrer panels, drill-down filtering, range expressions, and full mouse support 📊
- `QR Codes` - Render any link as a scannable QR code right in the terminal 📱
- `Export` - Download click data as JSON, CSV, XLSX, or XML 📤
- `API Keys` - Create, list, and revoke keys for scripting 🔑
- `Device-Flow Auth` - No keys to paste — sign in through the spoo.me device flow, sessions refresh for 30 days 🪪
- `Pipe-Aware` - `--json` on every command, plain output when piped, `NO_COLOR` honored, self-host friendly 🧰

Expand Down Expand Up @@ -59,7 +58,7 @@ Grab a binary for macOS, Linux, or Windows — or a `.deb`, `.rpm`, or `.apk` pa

# ⌨️ Shell Completion

Tab-completion covers commands, flags, **and live data** — your link aliases (`spoo open <Tab>`), link and key IDs (`spoo links delete <Tab>`, `spoo keys revoke <Tab>`), and flag values like `--scopes`, `--domain`, and `--format`.
Tab-completion covers commands, flags, **and live data** — your link aliases (`spoo open <Tab>`), link IDs (`spoo links delete <Tab>`), and flag values like `--domain` and `--format`.

Installed via **Homebrew**? It's wired up automatically — just open a new shell.

Expand Down Expand Up @@ -95,7 +94,6 @@ spoo stats launch # charts in your terminal
| `spoo links update/delete <id>` | Scriptable link management (`delete` requires `--yes`). |
| `spoo stats [code]` | Interactive analytics dashboard: time chart with previous-period overlay (`p`), browser/OS/country/city/referrer panels, drill-down filtering (enter or click any row), link switcher (`g`), range expressions (`T` — `7d`, `4h`, `now - 2w to now - 1w`, `2026-01-01 to 2026-02-15`), clicks↔unique toggle (`u`), full mouse support. Piped or `--plain` prints a static report; public stats work logged out. |
| `spoo export [code]` | Download analytics as JSON, CSV (zip), XLSX, or XML. |
| `spoo keys` | API keys: `create` (token shown once), list, `revoke`. |
| `spoo open <code>` | Open a short link in your browser. |
| `spoo inspect <code>` | See where a link points **without** counting a click. |
| `spoo qr <code>` | Render a link as a scannable QR code in the terminal (also `Q` in `spoo links`). |
Expand Down
869 changes: 869 additions & 0 deletions cmd/spoo-mock/main.go

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ require (
github.com/NimbleMarkets/ntcharts/v2 v2.2.0
github.com/atotto/clipboard v0.1.4
github.com/charmbracelet/colorprofile v0.4.3
github.com/mdp/qrterminal/v3 v3.2.1
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c
github.com/spf13/cobra v1.10.2
github.com/spoo-me/spoo-go v0.4.0
github.com/zalando/go-keyring v0.2.8
golang.org/x/term v0.44.0
)
Expand All @@ -36,7 +38,6 @@ require (
github.com/lrstanley/bubblezone/v2 v2.0.0 // indirect
github.com/lucasb-eyer/go-colorful v1.4.0 // indirect
github.com/mattn/go-runewidth v0.0.23 // indirect
github.com/mdp/qrterminal/v3 v3.2.1 // indirect
github.com/mitchellh/hashstructure/v2 v2.0.2 // indirect
github.com/muesli/cancelreader v0.2.2 // indirect
github.com/muesli/mango v0.1.0 // indirect
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ github.com/spf13/cobra v1.10.2/go.mod h1:7C1pvHqHw5A4vrJfjNwvOdzYu0Gml16OCs2GRiT
github.com/spf13/pflag v1.0.9/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
github.com/spf13/pflag v1.0.10 h1:4EBh2KAYBwaONj6b2Ye1GiHfwjqyROoF4RwYO+vPwFk=
github.com/spf13/pflag v1.0.10/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
github.com/spoo-me/spoo-go v0.4.0 h1:4sVce0UDrKZFKViIWkSGs6s+jqA5IybNgvYfQr48fqU=
github.com/spoo-me/spoo-go v0.4.0/go.mod h1:6WuLTT53iUtSH5P1JwU2PR1T/JQgt7iE2kcDeQMNP+g=
github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY=
github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=
github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
Expand Down
41 changes: 0 additions & 41 deletions internal/api/auth.go

This file was deleted.

54 changes: 0 additions & 54 deletions internal/api/auth_test.go

This file was deleted.

194 changes: 0 additions & 194 deletions internal/api/client.go

This file was deleted.

Loading
Loading