spawn/cli/src
A 8ea28e1d07
test: Add 28 tests for index.ts main() routing (zero prior coverage) (#230)
Tests the actual CLI entry point through subprocess execution:
- help/version command routing (help, --help, -h, version, --version, -v, -V)
- Subcommand --help routing (list --help, agents --help, clouds --help, etc.)
- ls alias routing
- Non-TTY mode behavior (shows help when no args)
- handleError formatting for invalid identifiers
- extractFlagValue in actual CLI (--prompt/--prompt-file missing values)
- --prompt and --prompt-file mutual exclusion
- --prompt-file with nonexistent file
- Prompt-only-without-cloud error messaging

Agent: test-engineer

Co-authored-by: A <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-02-10 12:49:50 -08:00
..
__tests__ test: Add 28 tests for index.ts main() routing (zero prior coverage) (#230) 2026-02-10 12:49:50 -08:00
commands-logic.ts test: Add command logic tests and refactor for testability (#56) 2026-02-08 12:02:43 -08:00
commands.ts feat: Add cloud info command (spawn <cloud>) for cloud-first discovery (#192) 2026-02-10 08:54:24 -08:00
index.ts fix: Show unified agent+cloud suggestions for unknown single-arg commands (#229) 2026-02-10 12:49:44 -08:00
manifest.ts refactor: Automated improvements from cycle 1 2026-02-08 06:02:07 +00:00
security.ts fix: Remove curl|bash script validation that blocks spawn scripts 2026-02-10 09:40:16 +00:00
unicode-detect.ts fix: Switch build target from node to bun to fix UTF-8 mojibake 2026-02-10 09:36:28 +00:00
update-check.ts fix: UX improvements for spawn update, --prompt validation, and update banner (#166) 2026-02-10 01:35:46 -08:00