-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Summary
The current command prompts to install missing versions interactively. This causes issues in CI environments where stdin is not available.
Problem
When running dtvem current node and the configured version is not installed, the command prompts:
Install Node.js 22.0.0 now? [Y/n]:
In CI environments, this prompt either:
- Hangs waiting for input
- Auto-accepts (empty stdin treated as 'Y'), causing unexpected installations
Proposed Solution
Add a --yes / -y flag to the current command that:
- Skips the install prompt entirely, OR
- Automatically accepts the prompt
Alternatively, add a --no-install flag that prevents the install prompt altogether.
Use Case
Integration tests need to verify the current version without triggering installations:
CURRENT=$(./dist/dtvem current node --no-install)Related
- feat(init): add --yes flag to skip confirmation prompts #132 - Added
--yesflag toinitcommand for similar CI compatibility
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request