Browse Source

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

test1 1.3.0
Valentin Lab 6 years ago
parent
commit
a3d694bf4e
  1. 7
      bin/compose-core

7
bin/compose-core

@ -1742,6 +1742,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