Skip to content

e2e-s1.2-25839880613: CLI --version, help, and input validation#18

Open
kumaakh wants to merge 6 commits into
mainfrom
e2e-s1.2-25839880613/sprint
Open

e2e-s1.2-25839880613: CLI --version, help, and input validation#18
kumaakh wants to merge 6 commits into
mainfrom
e2e-s1.2-25839880613/sprint

Conversation

@kumaakh
Copy link
Copy Markdown
Collaborator

@kumaakh kumaakh commented May 14, 2026

Summary

Sprint deliverables for the three top-priority P1 issues from the e2e-testing Beads label.

  • gh-toy-4ef: --version flag prints 'fleet-e2e-toy v1.0.0' and exits 0
  • gh-toy-kbk: help subcommand and --help / -h flag list all subcommands & flags
  • gh-toy-v6z: empty / whitespace string arguments rejected with a clear error message and non-zero exit, unit test added

Test plan

  • npm run build passes
  • npm test passes (42 tests — 21 existing + 21 new CLI tests)
  • --version exits 0 with the exact expected output
  • help / --help / -h enumerate every subcommand & flag, exit 0
  • Empty / whitespace input rejected, non-zero exit, unit test in place
  • Reviewer approved (see e5faec4 feedback.md)

Sprint driven via apra-fleet PM skill (doer + reviewer local members). Cleanup commit removes PLAN.md / feedback.md control files.

fleet-reviewer added 6 commits May 13, 2026 23:34
Introduce src/cli.ts as the CLI entry point with argument parsing.
--version / -v prints "fleet-e2e-toy v1.0.0" and exits 0.
Also scaffolds help and input validation handled in subsequent commits.
help subcommand and --help/-h flags print usage listing all
subcommands (help, serve) and flags (--version/-v, --help/-h, --port).
Both invocation styles produce identical output, exit 0.
Tests verify output content and consistency.
validateStringArg rejects empty and whitespace-only arguments with a
user-friendly error message. CLI exits with code 1 on bad input.
Unit tests cover empty string, whitespace-only, and valid input cases.
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