Skip to main content

Module batch_relate

Module batch_relate 

Source
Expand description

memstead batch-relate --from <file.json> — apply many edge changes in one call: one workspace load, one commit per touched mem, all-or-nothing with report-all refusals.

One list carries both additions and removals, applied in order (a later entry sees the effect of an earlier one — an add followed by a remove of the same edge nets to no edge). Each entry mirrors what memstead relate accepts, plus its own provenance note — per-entry, like the rest of the batch family; there is no batch-level note flag.

{ "relates": [
    { "from": "specs--alpha", "type": "USES", "to": "specs--beta" },
    { "from": "specs--alpha", "type": "USES", "to": "specs--gamma",
      "remove": true, "note": "rehang: gamma superseded" },
    { "from": "specs--beta", "type": "PART_OF", "to": "specs--suite",
      "description": "core member" }
] }

Structs§

Args

Functions§

run