Skip to content

Commit 369fb7e

Browse files
authored
Improve upgrade detection (#33)
1 parent eca9ef4 commit 369fb7e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

skills/parallel-cli-setup/SKILL.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,12 @@ If missing, install with any of these methods:
2626
3. Linux/macOS/Windows (npm): `npm install -g parallel-web-cli`
2727
4. Linux/macOS/Windows (pipx): `pipx install "parallel-web-tools[cli]" && pipx ensurepath`
2828

29-
If it already exists, check the version. These instructions require **0.4.0 or greater**. If lower, prompt the user to update using the method they originally used. Identify the install method from the path of the `parallel-cli` executable. If it's located in `~/.local/bin`, it was installed by a legacy method — remove the binary and reinstall using one of the methods above.
29+
When `parallel-cli` is present, require version `>=0.4.0`. If older, identify the install method before advising an update. Use `command -v parallel-cli`, then inspect `readlink "$(command -v parallel-cli)"` if it is a symlink. Paths under `~/.local/share/uv/
30+
tools/` indicate `uv tool install`; paths under `~/.local/share/parallel-cli/` indicate the standalone installer.
3031

3132
Upgrade commands (choose based on how it was installed):
3233

34+
- standalone: `parallel-cli update`
3335
- uv: `uv tool upgrade parallel-web-tools[cli]`
3436
- pipx: `pipx upgrade parallel-web-tools[cli]`
3537
- npm: `npm update -g parallel-web-cli`

0 commit comments

Comments
 (0)