Skip to content

fix(cli): emit json for schedule status#305

Merged
upsetbit merged 1 commit into
masterfrom
codex/fix-schedule-status-json
Jun 27, 2026
Merged

fix(cli): emit json for schedule status#305
upsetbit merged 1 commit into
masterfrom
codex/fix-schedule-status-json

Conversation

@upsetbit

Copy link
Copy Markdown
Contributor

Summary

Fixes #293.

Makes prosa schedule status --json emit valid JSON instead of TSV text.

What changed

  • Added a JSON status payload for schedule status when the global --json flag is present.
  • Includes status, installed, and installed-only unit / interval fields.
  • Added direct tests for installed and not-installed JSON payloads.

Validation

  • go test ./internal/cli -run 'TestEmitScheduleStatusJSON' -count=1
  • go test ./internal/cli/... -race
  • go build -o ./bin/prosa ./cmd/prosa
  • Manual check: prosa schedule status --json | python3 -m json.tool

@upsetbit upsetbit added bug Something isn't working area:cli prosa CLI scope:cli prosa CLI commands, flags, rendering, setup, and scheduled sync severity:medium Latent bug, inconsistent contract, brittle pattern priority:P1 Important reliability, usability, workflow, or audit follow-up source:audit Created from an audit report or validation pass labels Jun 27, 2026
@upsetbit upsetbit merged commit 1ddc607 into master Jun 27, 2026
4 checks passed
@upsetbit upsetbit deleted the codex/fix-schedule-status-json branch June 27, 2026 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:cli prosa CLI bug Something isn't working priority:P1 Important reliability, usability, workflow, or audit follow-up scope:cli prosa CLI commands, flags, rendering, setup, and scheduled sync severity:medium Latent bug, inconsistent contract, brittle pattern source:audit Created from an audit report or validation pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

schedule status --json emits TSV instead of JSON

1 participant