Skip to content

feat(init): add --yes flag to skip confirmation prompts#133

Merged
CalvinAllen merged 1 commit intomainfrom
feat/init/yes-flag
Dec 13, 2025
Merged

feat(init): add --yes flag to skip confirmation prompts#133
CalvinAllen merged 1 commit intomainfrom
feat/init/yes-flag

Conversation

@CalvinAllen
Copy link
Contributor

Summary

  • Add -y/--yes flag to the init command to skip interactive confirmation prompts
  • Allows non-interactive usage in CI environments where integration tests call dtvem init --yes

Changes

  • src/cmd/init.go: Add initYes flag variable and register with cobra
  • src/internal/path/path_unix.go: Update AddToPath to accept skipConfirmation parameter, skip shell config modification prompt when set
  • src/internal/path/path_windows.go: Update AddToPath and promptForElevation to accept skip parameter, skip elevation prompt when set

Test plan

  • Run npm run check (format, lint, test)
  • Verify dtvem init --yes works without prompts
  • Integration tests should no longer hang on init step

Fixes #132

Add -y/--yes flag to the init command that skips interactive confirmation
prompts when configuring PATH. This allows non-interactive usage in CI
environments where integration tests call 'dtvem init --yes'.

- Add initYes flag variable and register with cobra
- Update AddToPath signature to accept skipConfirmation parameter
- Skip prompts on Unix when flag is set (shell config modification)
- Skip prompts on Windows when flag is set (elevation request)

Fixes #132
@CalvinAllen CalvinAllen merged commit f054434 into main Dec 13, 2025
12 checks passed
@CalvinAllen CalvinAllen deleted the feat/init/yes-flag branch December 13, 2025 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

feat(init): add --yes flag to skip confirmation prompts

1 participant