From 2fefe92d679d1f28a0f8a7d11f224a1e784a366e Mon Sep 17 00:00:00 2001 From: Dave Henderson Date: Tue, 24 Apr 2018 00:54:42 -0400 Subject: Execute additional command after -- Signed-off-by: Dave Henderson --- docs/content/usage.md | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'docs') diff --git a/docs/content/usage.md b/docs/content/usage.md index de4ec93b..30f931dd 100644 --- a/docs/content/usage.md +++ b/docs/content/usage.md @@ -74,3 +74,13 @@ A few different forms are valid: Sometimes it's necessary to override the default template delimiters (`{{`/`}}`). Use `--left-delim`/`--right-delim` or set `$GOMPLATE_LEFT_DELIM`/`$GOMPLATE_RIGHT_DELIM`. + +## Post-template command execution + +Gomplate can launch other commands when template execution is successful. Simply +add the command to the command-line after a `--` argument: + +```console +$ gomplate -i 'hello world' -o out.txt -- cat out.txt +hello world +``` -- cgit v1.2.3