feat: CLI fn ops — init, entity, relation, graph, snapshot

Subcomando ops integrado en el CLI fn. Soporta CRUD de entities con
snapshot automatico de tipos, CRUD de relations con validacion de ciclos,
dump ASCII del grafo, y listado de tipos snapshotted. Variable de entorno
FN_REGISTRY_ROOT para acceder al registry desde cualquier directorio.
This commit is contained in:
2026-03-28 04:37:59 +01:00
parent 2d3f4b4448
commit 5b83b3f128
2 changed files with 638 additions and 1 deletions
+4 -1
View File
@@ -29,6 +29,8 @@ func main() {
cmdShow(os.Args[2:])
case "add":
cmdAdd(os.Args[2:])
case "ops":
cmdOps(os.Args[2:])
case "help", "-h", "--help":
printUsage()
default:
@@ -46,7 +48,8 @@ Usage:
fn search [-k kind] [-p purity] [-l lang] [-d domain] <query>
fn list [-k kind] [-d domain] [-l lang]
fn show <id> Muestra entrada completa
fn add [-k kind] Abre $EDITOR con template`)
fn add [-k kind] Abre $EDITOR con template
fn ops <subcommand> Gestiona operations.db (fn ops help)`)
}
func root() string {