e2e-s1.2-25839880613: CLI --version, help, and input validation#18
Open
kumaakh wants to merge 6 commits into
Open
e2e-s1.2-25839880613: CLI --version, help, and input validation#18kumaakh wants to merge 6 commits into
kumaakh wants to merge 6 commits into
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Sprint deliverables for the three top-priority P1 issues from the e2e-testing Beads label.
Test plan
Sprint driven via apra-fleet PM skill (doer + reviewer local members). Cleanup commit removes PLAN.md / feedback.md control files.