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

Move recursive init output to debug when there are no changes #2150

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pvickery-ParamountCommerce
Copy link

@pvickery-ParamountCommerce pvickery-ParamountCommerce commented Oct 31, 2024

With the current version of tflint, there can be a lot of output even when there are no changes. This PR moves the unneeded logs to DEBUG if there are no changes.

Fixes #2146

❯ tflint --recursive --config=$(pwd)/.tflint.hcl --init

Installing plugins on each working directory...

====================================================
working directory: dir1

Plugin "aws" is already installed
====================================================
working directory: dir2

Plugin "aws" is already installed
====================================================
working directory: dir3

Plugin "aws" is already installed
...
~/projects/dist/tflint --recursive --config=$(pwd)/.tflint.hcl --init

Installing plugins on each working directory...

All plugins are already installed

@pvickery-ParamountCommerce
Copy link
Author

@wata727 I made this PR from your suggestion #2146 (comment)

I just had to change and remove some test cases because of the modified behavior. Let me know what you think

cmd/init.go Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Quiet(er) option
2 participants