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
This change allows passing multiple variables files as input to
CLI. Order of files is important as overlapped keys in yaml or json
files will be overwritten by subsequent file.
This change is backwards compatible as CLI library makes the slice
definition to be repetition of the --vars argument. Using goss with
single file produces same outputs with the code change as it was before.
Usage:
```
./goss --vars file1.yaml --vars file2.yaml
```
Signed-off-by: Ondrej Vasko <[email protected]>
Usage: "json/yaml file containing variables for template",
87
+
Usage: "json/yaml file containing variables for template. Can be specified multiple times. When specified multiple times it will load variables from all files. Map keys that overlap will be overriden by subsequent file that defines them.",
Copy file name to clipboardExpand all lines: docs/cli.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ COMMANDS:
22
22
23
23
GLOBAL OPTIONS:
24
24
--gossfile value, -g value Goss file to read from / write to (default: "./goss.yaml") [$GOSS_FILE]
25
-
--vars value json/yaml file containing variables for template [$GOSS_VARS]
25
+
--vars value json/yaml file containing variables for template. Can be specified multiple times. When specified multiple times it will load variables from all files. Map keys that overlap will be overriden by subsequent file that defines them. [$GOSS_VARS]
26
26
--vars-inline value json/yaml string containing variables for template (overwrites vars) [$GOSS_VARS_INLINE]
27
27
--package value Package type to use [rpm, deb, apk, pacman]
28
28
--help, -h show help
@@ -42,7 +42,7 @@ GLOBAL OPTIONS:
42
42
* `json`
43
43
44
44
`--vars <varfile>`
45
-
: The file to read variables from when rendering gossfile [templates](gossfile.md#templates).
45
+
: The files to read variables from when rendering gossfile [templates](gossfile.md#templates).
0 commit comments