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
{{ message }}
Repository navigation
--format value validated only after network login — invalid format wastes a Cronometer login #15
cmd/format.go::emit calls chosenFormat(cmd) only inside emit, which runs aftercronoclient.NewLoggedIn(ctx) has already executed in every export subcommand's RunE. So a typo in --format makes a real Cronometer login attempt before the CLI complains.
$ /tmp/crono-export biometrics --format yaml
error: login failed: failed to login: Too Many Attempts. Please try again later.
The CLI hits the (rate-limited) login endpoint, then would have rejected the bad format anyway. Repeated typos burn through Cronometer's rate-limit budget and lock subsequent legitimate calls out for several minutes. (Discovered while testing — entire QA session locked for ~5 minutes after a couple of bad-format probes.)
Expected: validate --format (and --since/--until parsing) in RunE before calling cronoclient.NewLoggedIn. chosenFormat is a pure local check; do it first.
Activity
v0.2.0 release prep: 8 fixes for ship-blocker QA findings (#44)
DTTerastar commentedon May 19, 2026
Fixed in v1.0.0 — https://github.com/quantcli/crono-export-cli/releases/tag/v1.0.0