You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -113,11 +113,11 @@ Within those templates, the object emitted by docker-gen will have [this structu
113
113
114
114
#### Functions
115
115
116
-
**`closest $array $value`: Returns the longest matching substring in `$array` that matches `$value`
116
+
**`closest $array $value`*: Returns the longest matching substring in `$array` that matches `$value`
117
117
**`coalesce ...`*: Returns the first non-nil argument.
118
118
**`contains $map $key`*: Returns `true` if `$map` contains `$key`. Takes maps from `string` to `string`.
119
119
**`dict $key $value ...`*: Creates a map from a list of pairs. Each `$key` value must be a `string`, but the `$value` can be any type (or `nil`). Useful for passing more than one value as a pipeline context to subtemplates.
120
-
**`dir $path`: Returns an array of filenames in the specified `$path`.
120
+
**`dir $path`*: Returns an array of filenames in the specified `$path`.
121
121
**`exists $path`*: Returns `true` if `$path` refers to an existing file or directory. Takes a string.
122
122
**`first $array`*: Returns the first value of an array or nil if the arry is nil or empty.
123
123
**`groupBy $containers $fieldPath`*: Groups an array of `RuntimeContainer` instances based on the values of a field path expression `$fieldPath`. A field path expression is a dot-delimited list of map keys or struct member names specifying the path from container to a nested value, which must be a string. Returns a map from the value of the field path expression to an array of containers having that value. Containers that do not have a value for the field path in question are omitted.
0 commit comments