docs: update project rules for safer wipe behavior

This commit is contained in:
2026-04-27 23:02:14 +02:00
parent 7609bf9c17
commit 7321d7e087
+5
View File
@@ -7,12 +7,17 @@ description: mtm-ddwipe project conventions
- Keep shell scripts Bash-based when Bash is already used by the project.
- Preserve the current behavior of the main script:
- `mtm-ddwipe`: wipe devices.
- Strengthen destructive-action safety checks in `mtm-ddwipe` when making changes.
- Keep `mtm-ddwipe` interactive by default unless a change explicitly adds a safe opt-in flag.
- Keep user-facing messages short, clear, and in English.
- Prefer minimal, focused changes that do not alter the intent of the existing scripts, unless the script behavior is intentionally updated.
- Maintain `.continue/rules/project.md` whenever project conventions or script behavior change.
- `mtm-ddwipe` is a small Bash script with helper functions.
- Keep the host and line-number removal behavior intact.
- `mtm-ddwipe` must print a usage line and support `-h`/`--help`.
- Validate that wipe targets are real block devices before operating on them.
- Prefer explicit, short confirmation prompts before destructive operations.
- Keep error and help messages short, clear, and in English.
# Project identity
- Main script: `mtm-ddwipe`