Browse Source

new: ``!file-content`` modifier to allow including file contents in some config values

hostresources
Valentin Lab 5 years ago
parent
commit
c328851170
  1. 7
      bin/compose-core

7
bin/compose-core

@ -1716,6 +1716,13 @@ yaml_get_interpret() {
return 1
}
;;
"!file-content")
source=$(echo "$content" | expand_vars) || {
err "shell expansion failed"
return 1
}
cat "$source" || return 1
;;
*)
err "Invalid object tag ${WHITE}$tag${NORMAL}"
return 1

Loading…
Cancel
Save