Skip to content

Missing required subcommands: 'prime' and 'auth status' #17

Closed

Description

@DTTerastar

Severity

blocker

Summary

The quantcli contract requires every CLI to expose:

  • withings-export prime — one-screen primer for LLM agents
  • withings-export auth status — fast local check, exit 0 if a usable token is saved, 1 otherwise, no network call

Neither is reachable in the shipped binary.

Reproduce

$ withings-export prime
Error: unknown command "prime" for "withings-export"
Run 'withings-export --help' for usage.

$ withings-export auth status
Authentication commands

Usage:
  withings-export auth [command]

Available Commands:
  login       Log in to Withings via OAuth2 in your browser
  logout      Remove stored auth tokens
  refresh     Force a token refresh and report status
  ...
$ echo $?
0

auth status falls through to Cobra's auto-help (and exits 0 silently — that's also wrong; with an unknown subcommand we'd at least expect a non-zero exit).

Expected

Both subcommands exist on main (cmd/prime.go, cmd/auth.go's statusCmd) but were merged after v0.2.1 was tagged. A new release will fix this — see #14.

Activity

  1. DTTerastar commented on Apr 25, 2026

    @DTTerastar
    ContributorAuthor

    Does not reproduce against HEAD b580683. prime prints the LLM primer; auth status -> "logged in as user 1629692 (token expires ...)" with EXIT=0. Fixed by PRs #9 and #10. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions