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

Expose metadata about a module via custom command #459

Closed
radeksimko opened this issue Apr 15, 2021 · 2 comments
Closed

Expose metadata about a module via custom command #459

radeksimko opened this issue Apr 15, 2021 · 2 comments
Labels

Comments

@radeksimko
Copy link
Member

Current Version

0.15.0

Use-cases

Similar to how symbols provide a high-level overview of the code structure:

Screenshot 2021-04-15 at 10 25 00

We can provide some kind of overview of the providers in use which were parsed for a given module, e.g.

provider.aws - hashicorp/aws (~> 3.0): 3.1.0
provider.grafana - grafana/grafana (>= 2.0): 2.3.1

Relatedly we can also highlight what TF version is required and available, e.g.

Terraform ~> 0.14 (0.14.9)

Proposal

Expose a custom command, such as moduleinfo which can expose details about the module's metadata that can be leveraged by clients and potentially somehow displayed in the UI.

Such command could just pull all that info out of the state store.

The only question is how do we ensure that the client always has up-to-date data - it would likely need to be requesting the data all the time, similar to how the old rootmodules command is wired in the VS Code extension.

@radeksimko
Copy link
Member Author

This was implemented as part of #712

@github-actions
Copy link

github-actions bot commented Jan 1, 2022

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant