File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,28 @@ The user will be required to unlock their keychain if the secret-agent isn't run
127
127
password: 'enc:1:wy4ECQMI/o7E3nw9SP7g3VsIMg64HGIcRb9HyaXpQnyjozFItwx4HvsP1D2plP6Y0kYBAr2ytzs2v5bN+n2oVthkEmbrq8oqIqCF3Cx+pcjJ+5h+SyxQuJ7neNp4SRtnD4EK32rPJpyDMeHG4+pGwIjFuSH1USqQ=SZWR'
128
128
` ` `
129
129
130
+ # # The `$if` and `$try` Directives
131
+
132
+ Performs basic control flow.
133
+
134
+ ` ` ` yaml
135
+ $try:
136
+ $value:
137
+ $extends: ./other-file.yml
138
+ $fallback: {}
139
+ ` ` `
140
+
141
+ Use `$unsafe : true` if you want to catch _any_ error. Some "safe" errors are caught by default.
142
+
143
+ ` ` ` yaml
144
+ $if:
145
+ $check: true
146
+ $then: foo
147
+ $else: bar
148
+ ` ` `
149
+
150
+ The `$if` directive is straightforward, see the example.
151
+
130
152
# # The `$timestamp` Directive
131
153
132
154
Allows injecting the current date and time into configuration. While this option is useful,
You can’t perform that action at this time.
0 commit comments