Skip to main content

Module normalize

Module normalize 

Source
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§

ResolvedApp
A validated app config — only obtainable via normalize

Enums§

NormalizeError
Error type returned from normalize and normalize_all
TildeError
Why expand_home_tilde refused 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 ~/ in value against home — the one piece of tilde-expansion logic in the workspace, shared by expand_tilde above (Flockfile path fields, private to this module) and shep-cli’s own shep 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.