Settings.Frobs (fnord v0.8.83)
View SourceManage frob enablement in settings.json using approvals-style arrays.
Schema:
- Global: ["frobs"] :: [string]
- Per-project: ["projects", pn, "frobs"] :: [string]
Effective enablement is the union of global and current project's frobs. All mutations are performed via Settings APIs that provide cross-process locking and atomic writes.
Summary
Functions
Disable a frob in the given scope. Idempotent.
Return the effective set of enabled frobs for the current project context (union of global and project lists).
Enable a frob in the given scope. Idempotent.
Is the given frob enabled (effective union)?
List enabled frobs for the given scope.
Prune missing frobs from settings based on the given list of present frob names.
Types
@type scope() :: :global | :project | {:project, String.t()}
Functions
Disable a frob in the given scope. Idempotent.
Return the effective set of enabled frobs for the current project context (union of global and project lists).
Enable a frob in the given scope. Idempotent.
Is the given frob enabled (effective union)?
List enabled frobs for the given scope.
Prune missing frobs from settings based on the given list of present frob names.
This removes any frob names that are not found in present_names from:
- the global
frobsarray, and - the currently selected project's
frobsarray (if a project is selected)
Returns the list of names that were retained.