hashicorp / hashicorp/consul-template

using stdin/stdout for templates?

Open
#84 9 comments 6 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
4.8k
Forks
801
Avg merge
4h 5m
Merged PRs (30d)
6

Description

Is it possible to read the template from stdin and/or write the output to stdout rather than from a file? It would be nice to avoid managing extraneous temporary files.

Using stdin/stdout without the -once flag would be nonsensical.

the -dry flag almost works for standard output, but it adds an extra leading line.

P.S. Do you have another mechanism for these sorts of questions, such as a mailing list? This is the third time I've (ab)used the issue tracker for usage questions like this.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.