Skip to content

Add -y alias and interactive root install prompt#30

Merged
fdarian merged 3 commits intomainfrom
ff-64-when-running-on-root-add-y-alias-to-skip-confirmation-and
Feb 26, 2026
Merged

Add -y alias and interactive root install prompt#30
fdarian merged 3 commits intomainfrom
ff-64-when-running-on-root-add-y-alias-to-skip-confirmation-and

Conversation

@fdarian
Copy link
Copy Markdown
Owner

@fdarian fdarian commented Feb 26, 2026

Summary

  • Add -y alias for the --sure option to skip confirmation when installing at monorepo root
  • Extract root installation confirmation logic into a testable confirmRootInstall function
  • Add Vitest infrastructure with comprehensive test coverage for the confirmation flow
  • Support interactive prompts that respect CLAUDECODE environment variable and handle Ctrl+C gracefully

Test plan

  • Verify pm i -y works to skip the confirmation prompt at root
  • Verify pm i --sure still works as before
  • Run bun test to ensure all tests pass
  • Test interactive mode: pm i at root should prompt for confirmation
  • Test CLAUDECODE mode: CLAUDECODE=1 pm i should not prompt and skip installation
  • Test Ctrl+C handling in interactive mode

When running `pm i` at the monorepo root, prompt the user interactively
with [y/n] instead of requiring a separate `pm i --sure` command. Add
`-y` as a short alias for `--sure`. When CLAUDECODE=1, keep the
non-interactive behavior.
@fdarian fdarian force-pushed the ff-64-when-running-on-root-add-y-alias-to-skip-confirmation-and branch from d74f98a to dadbbba Compare February 26, 2026 02:14
@fdarian fdarian merged commit 89c96d3 into main Feb 26, 2026
1 check passed
@fdarian fdarian deleted the ff-64-when-running-on-root-add-y-alias-to-skip-confirmation-and branch February 26, 2026 02:19
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