Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support retrieving comments inserted above keys #9

Open
mattolenik opened this issue Apr 19, 2019 · 0 comments
Open

Support retrieving comments inserted above keys #9

mattolenik opened this issue Apr 19, 2019 · 0 comments
Assignees
Milestone

Comments

@mattolenik
Copy link
Owner

Given the following:

// This is some description
// of the object below.
data "machine" {
    foo = 123
}

Users should be able to query something like:

hclq get-comments data.machine

And the value This is some description of the object below. would be returned.

I think this may prove useful for using comments as "annotations." This could be used to add additional type data, linting rules, other requirements, whatever you want.

@mattolenik mattolenik self-assigned this Apr 19, 2019
@mattolenik mattolenik added this to the 0.6.0 milestone Apr 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant