feat(pkg): add install/remove toggle with force flags

pkg now auto-detects whether each package is installed and
installs or removes accordingly. Explicit -i/--install and
-u/--uninstall flags override the auto-detection. Adds help
output when invoked without arguments.
This commit is contained in:
2026-05-26 13:09:22 -04:00
parent d7afc7dd6b
commit 31a1c4089a
2 changed files with 114 additions and 4 deletions
+1 -1
View File
@@ -236,7 +236,7 @@ rm -f file.txt # Falls through to standard rm -f
| Function | Description |
|---|---|
| `pkg <name>` | Install package: `paru -S <name>` |
| `pkg <name>...` | Toggle package: installs if missing, removes (`-Rns`) if installed; `-i` force-install, `-u` force-uninstall |
| `search <query>` | Search/install interactively: `paru <query>` |
| `upgrade` | Full system upgrade: `paru -Syu --noconfirm` |
| `cleanup` | Log and remove orphaned packages |