Documentation
¶
Overview ¶
Package profile implements FastConf's tiny boolean profile-expression language (Phase 13). An expression is a propositional formula over profile names with the operators '&' (AND), '|' (OR), '!' (NOT) and parentheses. An identifier evaluates to true iff it is in the active profile set.
Examples:
"prod" → active("prod")
"prod & eu" → active("prod") && active("eu")
"prod & (eu | us)" → active("prod") && (active("eu") || active("us"))
"prod & !canary" → active("prod") && !active("canary")
The parser is recursive-descent and dependency-free; FastConf's main module never grows a third-party expression library.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.