Skip to content

feat: support uninstalling multiple versions - #1616

Open
yeliex wants to merge 1 commit into
Schniz:masterfrom
yeliex:feat/uninstall-multiple-versions
Open

yeliex wants to merge 1 commit into
Schniz:masterfrom
yeliex:feat/uninstall-multiple-versions

Conversation

@yeliex

@yeliex yeliex commented Nov 8, 2026

Copy link
Copy Markdown

Summary

Allow fnm uninstall to accept multiple versions:

fnm uninstall 18.20.4 20.18.0

Each target is resolved against the currently installed versions and removed in argument order. Missing, ambiguous, or system targets and deletion errors do not prevent subsequent targets from being processed. The command returns exit status 1 if any target fails.

Repeated versions or aliases removed by an earlier target are treated as missing. Single-target behavior and version inference when no arguments are supplied remain unchanged.

Includes updated command documentation, a minor changeset, and regression tests.

Refs #534. This change supports multiple explicit arguments; it does not expand a single argument into multiple uninstall targets.

Validation

  • cargo build --locked
  • cargo fmt -- --check
  • cargo clippy --locked -- -D warnings
  • cargo test --locked --quiet: 30 tests passed.
  • pnpm generate-command-docs: regenerated documentation matches the checked-in help text.
  • pnpm test e2e/uninstall-multiple.test.ts --runInBand --testNamePattern='^(Bash|Zsh) ': all 14 selected regression tests passed.
  • Fish and Windows PowerShell were not tested locally.

Co-authored-by: Codex <codex@openai.com>

This branch has not been deployed

No deployments
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