summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDave Henderson <dhenderson@gmail.com>2018-04-24 00:54:42 -0400
committerDave Henderson <dhenderson@gmail.com>2018-05-02 19:22:59 -0400
commit2fefe92d679d1f28a0f8a7d11f224a1e784a366e (patch)
tree3c67c38a5f8204d6245925b0350d78b68ffe7596 /docs
parent03cbf49cd896e55a2fb9c02f07c0c231e221c39b (diff)
Execute additional command after --
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/content/usage.md10
1 files changed, 10 insertions, 0 deletions
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
+```