v1.8.0 — UX fixes, partial-version resolve, auto-use, did-you-mean, uninstaller#14
Merged
Merged
Conversation
…ean, uninstaller Cross-platform release addressing user UX feedback. Fixes: - Linux color helpers use printf instead of `echo -e`, so a trailing `\` in the apt/dnf dependency block no longer merges with the \033[0m reset and leaks `\033[0m` into the output. - `phpvm use` only warns about persisting to a shell rc when phpvm is not already sourced there, instead of on every call. - `php --version` / `composer --version` output is indented to match the surrounding 2-space style (use, current, composer). Features: - `phpvm install 8` resolves to the latest 8.x and `phpvm install 8.3` to the latest 8.3.x (Linux via php.net JSON; Windows bare-major added to Resolve-LatestPatch). - A successful install now auto-activates the version (no separate `use`). - Unknown commands get a Levenshtein-based "Did you mean ...?" suggestion instead of dumping the full help. - New uninstall.sh / uninstall.ps1 reverse the installers (--keep-versions, --yes); does not revert Windows ExecutionPolicy. Also: .gitattributes pins *.sh/*.bats to LF; bats + Pester coverage for the new resolver, did-you-mean, and Levenshtein; README; version bump to 1.8.0.
Forcing `*.ps1 eol=crlf` made the Linux CI runner check PowerShell files out with CRLF, so the version-consistency grep captured a trailing `\r` (`1.8.0\r`) and failed. Pin only *.sh / *.bats to LF (the files that actually break with CRLF) and leave PowerShell to git's default handling.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cross-platform 1.8.0 release from user UX feedback.
Fixes
printf(notecho -e); the trailing\in the apt/dnf dependency block no longer merges with the\033[0mreset and leaks\033[0minto the output (point 1).phpvm useonly nudges about sourcing in a shell rc when phpvm isn't already sourced there (point 2).php --version/composer --versionnow match the 2-space style inuse,current,composer.Features
phpvm install 8→ latest 8.x,phpvm install 8.3→ latest 8.3.x. Linux uses the php.net JSON API; Windows extendsResolve-LatestPatchto accept a bare major (point 3).installactivates the version immediately (point 4).linux/uninstall.sh+windows/uninstall.ps1reverse the installers — remove~/.phpvm, strip the rc source block (Linux) / User PATH entry (Windows). Flags:--keep-versions,--yes. Does not revert Windows ExecutionPolicy.Housekeeping
.gitattributespins*.sh/*.batsto LF (avoidbad interpreteron Linux).Follow-up
phpvm use" note) queued for 1.8.1.🤖 Generated with Claude Code