Skip to main content

Module config

Module config 

Source
Expand description

Host configuration: a hand-edited TOML file, not a state database.

This reverses an early instinct to copy murmur’s peers table. murmur’s peers carry discovered state (snapshots, fetched_at, last_error), which is why they need a store. coop’s hosts are pure user intent, so a file is editable, diffable, and needs no migration story.

Structs§

Config
Host
A configured host, after name-derived defaults have been applied.

Constants§

TEMPLATE
Where the config lives: ~/.config/coop/config.toml. Written to the config path the first time coop runs without one.

Functions§

default_path
seed
Write TEMPLATE to path unless something is already there.