Expand description
lean-ctx cloud unlink (rc4-6): stop sharing one project folder with
its vault, on this machine only.
Local only: Cloud has no route to leave a vault, and none is needed. The vault and its data stay in Cloud; this machine just no longer binds the folder to it. Works while disconnected.
In this order (a failure names what was already done):
- the folder is remembered as not shared (
crate::unlinked): nothing resolves a vault for it again (another checkout of the repository, its main checkout, a kept link file, a session that ends) untilcloud linkin the folder; - knowledge drafts queued for that folder are dropped, and the capture watermark of the project is reset, so a later share captures their facts again;
- the folder leaves its record in
projects.json, and the record goes when no folder remains (background sync only syncs recorded vaults); .lean-ctx-cloud.jsonin the folder is removed, only when it is a regular file that names that vault on this Cloud (a link to another vault or server, a damaged file or a symlink stays).
Kept: local knowledge, cache, sessions and .lean-ctx-id.
Structs§
Enums§
- Kept
Reason - Why a link file stayed in the folder.
- Link
File - What became of the folder’s
.lean-ctx-cloud.json. - Unlink
Error - Why
unlinkrefused.
Functions§
- unlink
- Stop sharing the project folder
root(cloud data dirdata_dir;server: the self-hosted server of the connected Cloud,Nonefor the hosted one or when not connected). Idempotent: a folder that is not shared changes nothing (vault: None).