You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add context-aware requests and configurable timeout
Thread context.Context through the Metabase client and CLI so HTTP
requests can be cancelled and time-bounded consistently.
- Client request methods accept a context and build requests with
http.NewRequestWithContext; report clear timeout/cancellation errors.
- Root context is cancelled on SIGINT/SIGTERM so commands abort on Ctrl+C.
- New --timeout flag (default 30s, 0 disables) bounds each command's
API requests.
- Classify timeout and cancellation errors for --error-format json.
Closes#11
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@
2
2
3
3
## [Unreleased]
4
4
5
+
- Add `--timeout` flag and propagate request contexts so commands abort cleanly on Ctrl+C, with clear timeout and cancellation errors (#11)
5
6
- Add `MB_SESSION_TOKEN` as an alternative authentication method for users without admin access to mint an API key; mutually exclusive with `MB_API_KEY` (#9)
6
7
- Document changelog update workflow in `AGENTS.md` and add a pull request template prompting contributors to update `CHANGELOG.md` for user-visible changes (#20)
7
8
- Move main package to `cmd/mb-cli` so `go install github.com/andreagrandi/mb-cli/cmd/mb-cli@latest` produces an `mb-cli` binary that matches the documented command name (#10)
0 commit comments