Skip to content

feat: add --version flag to CLI (gh-toy-4ef)#85

Open
kumaakh wants to merge 6 commits into
mainfrom
e2e-s1-28554565041/gh-toy-4ef
Open

feat: add --version flag to CLI (gh-toy-4ef)#85
kumaakh wants to merge 6 commits into
mainfrom
e2e-s1-28554565041/gh-toy-4ef

Conversation

@kumaakh

@kumaakh kumaakh commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds a --version/-v CLI flag that prints fleet-e2e-toy v<version> (from package.json) and exits 0, checked before the Express server starts listening.
  • Adds unit + integration tests in tests/cli.test.ts covering both flags, output, and exit code.

Implements gh-toy-4ef (closes #1). Reviewed and approved by bella (reviewer) per the pm sprint doer/reviewer loop.

Test plan

  • npm run build
  • npm test (27/27 passing)
  • Manual check: --version / -v alongside other args

🤖 Generated with the pm skill sprint loop (fleet e2e test)

fleet-reviewer and others added 6 commits July 1, 2026 19:36
Add --version/-v flag to the CLI entrypoint that prints
"fleet-e2e-toy v<version>" (read from package.json) and exits 0,
checked before the Express server starts listening. Covered by unit
tests for the flag/version helpers and an integration test spawning
the entrypoint with each flag.
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.

Add --version flag to CLI

1 participant