Structured Local Files¶
Load values out of common local structured files — INI, JSON, YAML — using a parser and selector, without writing any parsing code.
Example¶
env-alias:
BUILD_NUMBER:
source: "~/.config/myproject/manifest.json"
parser: "json"
selector: ".meta.build"
DOCKER_TAG:
value: 'env:BUILD_NUMBER'
Walkthrough:
BUILD_NUMBER—parser: jsondeserialises the local manifest andselector: ".meta.build"pulls out the nested build number.~expands to the current user's home directory, so the path does not depend on where the alias is invoked.DOCKER_TAG— reuses that resolved value viavalue: 'env:BUILD_NUMBER'instead of duplicating it.