Add self-update command to refresh miaur from Git

Introduce `miaur self-update` / `--self-update` that clones RepoUrl@Branch,
detects user vs system install prefix, and reinstalls in place. Configurable
via conf/env; supports --noconfirm, --repo-url, and --branch.

Co-authored-by: Frank Vitrano <WHC2006@users.noreply.github.com>
This commit is contained in:
Cursor Agent
2026-07-23 14:44:24 +00:00
co-authored by Frank Vitrano
parent bba71040d6
commit a4f4767c47
11 changed files with 293 additions and 8 deletions
+3
View File
@@ -37,6 +37,7 @@ miaur -Qua # List available AUR upgrades
miaur -Sua # Upgrade AUR packages only
miaur -G <package> # Download a PKGBUILD
miaur --noconfirm -Syu # Upgrade without prompts
miaur self-update # Update miaur from Git
```
Run `miaur -h` for more options.
@@ -45,6 +46,8 @@ Run `miaur -h` for more options.
The optional configuration file is `~/.config/miaur/miaur.conf`. See `config/miaur.conf.example`.
Self-update reads `RepoUrl` / `Branch` (or `MIAUR_REPO` / `MIAUR_BRANCH`) when set.
## License
MIT