Skip to main content

Module init

Module init 

Source
Expand description

memstead init — bootstrap a filesystem mem in the current (or named) folder.

filesystem-mem is the single-mem, history-free, filesystem-backed product surface. After memstead init the folder contains:

  • .memstead/config.json — workspace shape (mem name, schema pin, empty deps list). Pinned via memstead_base::filesystem::config.
  • .memstead/cache/ — empty placeholder for any engine-managed cache data the workspace acquires later (e.g. resolved schema bytes).
  • .memstead/memstead-io/ — empty placeholder for cross-mem dependency archives populated by memstead link.

No .gitignore is written — filesystem-mem does not assume a surrounding git repo, and writing one would surprise users who do track the workspace under git themselves.

Strict mode in non-empty folders: see plan trade-off “Adopt vs. strict for memstead init”. A non-empty target errors out cleanly so the user explicitly clears or moves files before initialising — never silently ingests unrelated .md files.

Structs§

InitArgs
memstead init arguments.

Functions§

run