Skip to content

Is there a directive to have the output generator inject Comments (for types that support them)? #376

Answered by bioball
eli-xciv asked this question in Q&A
Discussion options

You must be logged in to vote

There is not.

One existing pattern here is to change the output.text to include comments:

foo = "Hello there"

output {
  text = """
    # Some comment
    \(new YamlRenderer {}.renderDocument(module))
    """
}

Although, this doesn't work as well if you want to add a comment in the middle of a file.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@eli-xciv
Comment options

@holzensp
Comment options

@eli-xciv
Comment options

@holzensp
Comment options

Answer selected by eli-xciv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants