feat: rm (with --cascade) and unalias commands, v0.1.2
ci / release (push) Successful in 1m13s

This commit is contained in:
2026-11-22 19:05:52 +01:00
parent 7c44fedcab
commit 7d1b6aed5f
3 changed files with 129 additions and 1 deletions
+4
View File
@@ -11,6 +11,8 @@ sirmem new my-proj project "My Project"
sirmem alias my-proj owner/repo
sirmem link my-proj uses sirlaptop "dev box"
sirmem rel my-proj
sirmem unalias my-proj owner/repo # remove an alias
sirmem rm sirlaptop --cascade # delete an entity (and its relations)
sirmem prefs
sirmem lint
```
@@ -19,6 +21,8 @@ Data dir: `schema.md` (types and verbs), `relations.tsv` (sorted, one direction)
`entities/<id>.md` (front-matter + body). Run `sirmem --help` for all commands.
Build: `devbox run build`, test: `devbox run test`. See AGENTS.md.
`rm <id>` refuses while the entity has relations (listed); `--cascade` removes them too and prints each one.
A merge tombstone is never removed while relations or other redirects still point to it.
Extra over the spec: `init` command; env `SIRMEM_MACHINE` overrides the detected hostname.
MIT licensed.