-
Notifications
You must be signed in to change notification settings - Fork 361
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
Implement -chdir
option to mimic terraform behaviour
#1315
Comments
-chdir
option to mimic terraform behaviour
Of note, Terraform handles this option different than all the rest of its command options. While command options follow the command (e.g., |
See #1580 for an instance of this difference in behavior tripping up users. In Terraform, |
tflint --help
says:...and I assumed that if I pass a directory to it, that directory will be considered root for scanning. But apparently it's not the case, the root is still the current directory, which means I always need to
cd
into the target directory before runningtflint
.I guess we need a separate option like
-chdir
in Terraform, as was also mentioned here. It would also allow scripting recursive checks without the need forcd
orpushd
/popd
for every module.The text was updated successfully, but these errors were encountered: