Skip to content

feat: implement P1 CLI features (--version, input validation, help)#42

Open
kumaakh wants to merge 9 commits into
mainfrom
e2e-s1.3-26546133857/sprint
Open

feat: implement P1 CLI features (--version, input validation, help)#42
kumaakh wants to merge 9 commits into
mainfrom
e2e-s1.3-26546133857/sprint

Conversation

@kumaakh
Copy link
Copy Markdown
Collaborator

@kumaakh kumaakh commented May 28, 2026

Summary

  • gh-toy-4ef: Add --version/-v flag — prints fleet-e2e-toy v1.0.0 and exits 0
  • gh-toy-v6z: Add isBlankOrEmpty() validation helper with unit tests — rejects empty/whitespace-only strings with clear error
  • gh-toy-kbk: Add help/--help/-h flag — prints full usage listing all subcommands and flags, exits 0

Test plan

  • npm run build — TypeScript compiles cleanly
  • npm run lint — ESLint passes
  • npm test — 24/24 tests pass (2 suites, includes 3 new validation tests)
  • npx ts-node src/index.ts --version → prints fleet-e2e-toy v1.0.0, exits 0
  • npx ts-node src/index.ts -v → same
  • npx ts-node src/index.ts --help → prints usage, exits 0
  • npx ts-node src/index.ts help → prints usage, exits 0
  • npx ts-node src/index.ts -h → prints usage, exits 0
  • Reviewed and approved by reviewer (feedback.md on branch)

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