Skip to content

feat(current): add --yes flag to skip install prompts #136

@CalvinAllen

Description

@CalvinAllen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions