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

Add list command for listing unapplied migrations #56

Merged
merged 4 commits into from
Nov 30, 2021

Conversation

minamijoyo
Copy link
Owner

It would be useful if we have a command which lists unapplied migrations to integrate CI/CD easily.

bash-5.0# go run ../.. list --help
Usage: tfmigrate list

List migrations.

Options:
  --config           A path to tfmigrate config file
  --status           A filter for migration status
                     Valid values are as follows:
                       - all (default)
                       - unapplied
bash-5.0# go run ../.. list --status=all 2> /dev/null
mv_bar1.hcl
mv_bar2.hcl
mv_bar3.hcl
bash-5.0# go run ../.. list --status=unapplied 2> /dev/null
mv_bar2.hcl
mv_bar3.hcl

@minamijoyo minamijoyo merged commit f662c0d into master Nov 30, 2021
@minamijoyo minamijoyo deleted the add-list-command branch November 30, 2021 00:45
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

Successfully merging this pull request may close these issues.

1 participant