Skip to content

Add --json output to claim rotate#142

Merged
d4rken merged 1 commit into
devfrom
feat/claim-rotate-json
Jun 18, 2026
Merged

Add --json output to claim rotate#142
d4rken merged 1 commit into
devfrom
feat/claim-rotate-json

Conversation

@d4rken

@d4rken d4rken commented Jun 18, 2026

Copy link
Copy Markdown
Member

Adds a --json flag to apl-feed claim rotate. With it, rotation emits a single machine-readable result object on stdout — result of rotated (with the accepted secret version) or error (with a machine code and a human detail string) — mirroring the existing claim status --json. Progress and retry notices move to stderr so stdout carries only the terminal result.

This lets a caller drive a claim-secret rotation and report the outcome reliably without scraping human text. The default (non---json) output is unchanged.

Adds a --json flag to claim rotate that emits a single schema-v1 result object on stdout (result rotated|error, the accepted version on success, a machine error code plus human detail on failure), mirroring claim status --json. Progress and retry notices move to stderr so stdout carries only the terminal result, letting the on-device webconfig drive rotation and report outcomes reliably. The default human output is unchanged.
@d4rken d4rken force-pushed the feat/claim-rotate-json branch from eedb74e to 81af220 Compare June 18, 2026 13:23
@d4rken d4rken merged commit 18a0731 into dev Jun 18, 2026
13 checks passed
@d4rken d4rken deleted the feat/claim-rotate-json branch June 18, 2026 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant