From c32885117011401f835f61deb1ed9d968d02aef6 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Thu, 16 May 2019 15:49:08 +0200 Subject: [PATCH] new: ``!file-content`` modifier to allow including file contents in some config values --- bin/compose-core | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/compose-core b/bin/compose-core index 6950340..416f49f 100755 --- a/bin/compose-core +++ b/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