Skip to content

--json output for core commands #3

Description

@0xLeif

Part of GOAL.md workstream A.

Add a --json flag to the README core commands (get, set, dump, keys, reset) so agents get machine-readable output instead of parsing human text.

Acceptance criteria

  • --json on each core command prints a single stable JSON document to stdout
  • Shapes are documented (field names, types, error shape) and versioned deliberately
  • Errors in JSON mode print a structured error object and exit non-zero
  • Tests assert exact JSON for each command; smoke.sh covers at least get/set
  • specs/aps-cli/aps-cli.spec.md updated in the same change (AGENTS.md rule)

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    dogfoodExercises an AppState feature surfaceenhancementNew feature or request

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions