Skip to content

good first issue: --json CLI output for reply + mode #5

Description

@primeodin

Why

First-timers often want to pipe the CLI into another script. A --json flag teaches structured output without growing the package.

Done when

  • python -m first_commit_ai --mock --json "hi" prints one JSON object on stdout
  • Fields include at least: reply (string), mock (bool), and system (string used)
  • Non-JSON mode stays plain text (no behavior change for existing users)
  • One new pytest covers the mock + --json path
  • README 60-second start shows one --json example line

Out of scope

Streaming, multiple turns, or new HTTP clients.

Part of the PrimeOdin daily AI teaching builds.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions