docs(readme): show --yes in rollback usage examples

Per Iron Rule 10 reviewer nit on PR #91: live rollback requires --yes
even for interactive humans. Update §Upgrading examples to show the
canonical human form. (AI agents pass --yes by convention; humans were
hitting a confusing "requires --yes" error following the prior README.)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-11 04:18:30 +10:00
co-authored by Claude Opus 4.7
parent 95d70d5865
commit 2a3376d237
+4 -4
View File
@@ -577,9 +577,9 @@ ocp update # smart-pick path
ocp update --check # show available updates, don't apply
ocp update --dry-run # preview plan
ocp update --target v3.13.0 # pin a specific version
ocp update --rollback # restore most recent snapshot
ocp update --rollback --list
ocp update --rollback --dry-run
ocp update --rollback --yes # restore most recent snapshot (--yes confirms)
ocp update --rollback --list # list snapshots, no mutation
ocp update --rollback --dry-run # preview rollback plan
```
### When upgrade fails
@@ -587,7 +587,7 @@ ocp update --rollback --dry-run
`ocp update` prints a recovery line on failure. To restore from the snapshot:
```bash
ocp update --rollback
ocp update --rollback --yes # --yes confirms the destructive restore
ocp doctor
```