Skip to content

fix(cli): reject missing init example values#2376

Merged
miguel-heygen merged 1 commit into
mainfrom
fix/init-reject-flag-example-1783989455
Jul 14, 2026
Merged

fix(cli): reject missing init example values#2376
miguel-heygen merged 1 commit into
mainfrom
fix/init-reject-flag-example-1783989455

Conversation

@miguel-heygen

Copy link
Copy Markdown
Collaborator

Summary

  • reject flag-shaped values consumed by init --example
  • emit a clear missing-value diagnostic before scaffolding
  • add an end-to-end regression test for --example --non-interactive

Test plan

  • bun test packages/cli/src/commands/init.test.ts (21/21)
  • bunx oxfmt --check packages/cli/src/commands/init.ts packages/cli/src/commands/init.test.ts
  • bunx oxlint packages/cli/src/commands/init.ts packages/cli/src/commands/init.test.ts
  • bun run --cwd packages/cli typecheck

@miguel-heygen
miguel-heygen merged commit 3a020bf into main Jul 14, 2026
13 checks passed
@miguel-heygen
miguel-heygen deleted the fix/init-reject-flag-example-1783989455 branch July 14, 2026 00:42
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