Skip to content

Documentation/code sample > .gomplate.yaml example #1105

Answered by hairyhenderson
adriens asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @adriens - I've moved this to the Discussions section because this is more of a question than an issue 😉

One way to generate a config file from a given commandline is to run gomplate in verbose mode. It'll print out the YAML form of the configuration that it's about to run. Here's what I get on my system with the same commandline:

$ gomplate -V -d data=person.json --file template.tmplt --out OUT.txt
17:01:58 DBG starting gomplate
17:01:58 DBG config is:
---
inputFiles: [template.tmplt]
outputFiles: [OUT.txt]
leftDelim: '{{'
rightDelim: '}}'
datasources:
  data:
    url: file:///Users/hairyhenderson/person.json
    header: {}
pluginTimeout: 5s
 build= version=3.9.0
17:01:58 DBG created …

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by adriens
Comment options

You must be logged in to vote
1 reply
@hairyhenderson
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1096 on March 27, 2021 20:58.