Expand description
Validation and normalization: AppConfig -> ResolvedApp
ResolvedApp is a proof token: constructing one is only possible through
normalize, so daemon code can require it and skip re-validation.
Structs§
- Resolved
App - A validated app config — only obtainable via
normalize
Enums§
- Normalize
Error - Error type returned from
normalizeandnormalize_all - Tilde
Error - Why
expand_home_tilderefused a value — the two failure modes with no per-field context attached, for a caller that has none to give.
Functions§
- expand_
home_ tilde - Expands a leading
~/invalueagainsthome— the one piece of tilde-expansion logic in the workspace, shared byexpand_tildeabove (Flockfile path fields, private to this module) andshep-cli’s ownshep adopt(its<path>argument). - normalize
- Validates one app config
- normalize_
all - Validates a whole flock, rejecting duplicate sheep names
- normalize_
with_ home normalize, with the home directory supplied rather than read.