feat: improve sshrm argument handling and help output

This commit is contained in:
2026-04-27 22:02:23 +02:00
parent 68034d0290
commit 8a0ddde506
2 changed files with 75 additions and 10 deletions
+20
View File
@@ -0,0 +1,20 @@
---
description: SSHRM project conventions
---
# Project conventions
- Use English throughout the project.
- Keep shell scripts Bash-based when Bash is already used by the project.
- Preserve the current behavior of the main scripts:
- `sshrm`: remove an entry from `~/.ssh/known_hosts` by host name or by line number.
- `git-release`: handle releases from `dev` to `main`, create an annotated tag, and push commits and tags.
- Keep user-facing messages short, clear, and in English.
- Prefer minimal, focused changes that do not alter the intent of the existing scripts.
- Maintain `.continue/rules/project.md` whenever project conventions or script behavior change.
- `sshrm` is implemented as a small Bash script with helper functions, while preserving host and line-number removal behavior.
- `sshrm` should print a short usage line, support `-h`/`--help`, and fail clearly on missing or invalid line-number input.
# Project identity
- Main script: `sshrm`
- Release helper: `git-release`
- License: GNU GPL v3