install.sh: add --only and --skip flags for subset installs

This commit is contained in:
Joakim Persson
2026-05-05 22:50:27 +02:00
parent 6307072b21
commit dee755e291
2 changed files with 69 additions and 15 deletions
+10
View File
@@ -19,6 +19,16 @@ chmod +x install.sh
Each `.ts` file in `extensions/` is symlinked into `~/.pi/agent/extensions/`. Existing real files are backed up with a timestamp. Re-runs are idempotent.
**Install a subset:**
```bash
./install.sh --only ssh-controlmaster # just this one
./install.sh --only "ssh-controlmaster,other" # explicit list
./install.sh --skip "git-checkpoint" # all except these
```
`--only` and `--skip` accept comma-separated names without the `.ts` suffix. `--only` takes precedence if both are given.
### Alternative: pi install (local path)
Because `package.json` declares a `pi` manifest, you can also register this repo as a pi package: