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

"state list" command, starting plumbing CLI #5792

Closed
wants to merge 10 commits into from
Closed

Conversation

mitchellh
Copy link
Contributor

This introduces the terraform state list command to list the resources within a state. This is the first of many state management commands to come into 0.7.

This is the first command of many to come that is considered a "plumbing" command within Terraform (see "plumbing vs porcelain": http://git.661346.n2.nabble.com/what-are-plumbing-and-porcelain-td2190639.html). As such, this PR also introduces a bunch of groundwork to support plumbing commands.

Main changes in this PR:

  • Main command output is changed to split "common" and "uncommon" commands.
  • mitchellh/cli is updated to support nested subcommands, since terraform state list is a nested subcommand.
  • terraform.StateFilter is introduced as a way in core to filter/search the state files. This is very basic currently but I expect to make it more advanced as time goes on.
  • terraform state list command is introduced to list resources in a state. This can take a series of arguments to filter this down.

Known issues, or things that aren't done in this PR on purpose:

  • Unit tests for terraform state list are on the way. Unit tests for the core changes are all there.

@jen20 jen20 mentioned this pull request Mar 23, 2016
@jen20
Copy link
Contributor

jen20 commented Mar 23, 2016

Just rebased this and opened a new PR as #5811

@jen20 jen20 closed this Mar 23, 2016
@jen20 jen20 deleted the f-state-list branch March 23, 2016 18:40
@ghost
Copy link

ghost commented Apr 27, 2020

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.

@ghost ghost locked and limited conversation to collaborators Apr 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants