Documentation
¶
Overview ¶
Package profile resolves the layout and inheritance of profiles inside a dotfile repository. A profile is a directory under profiles/<name>. It may carry a profile.json declaring a parent profile; the effective file set of a profile is the repository root, then every ancestor from the top down, then the profile itself, with later layers overriding earlier ones.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Chain ¶
Chain resolves the inheritance chain of name, ordered from the root-most ancestor to name itself. A profile without a directory is returned as a single-element chain so callers can keep their base-only fallback. A declared parent whose directory is missing, or a cycle, is an error.
func Dir ¶
Dir returns the directory inside repo where files for the given profile are stored. An empty name maps to the repository root (base); any named profile maps under profiles/<name>.
func List ¶
List returns the names of all profile directories in repo, sorted. A missing profiles/ directory yields nil and no error.