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
feat: adds --skip-init
flag
#193
Conversation
17a5535
to
cdca687
Compare
Hey @aknysh -- this isn't ready because I have an issue that I'd like to get your thoughts on: When passing To clarify, the following happens:
So couple questions here:
|
@Gowiem thanks for this PR. See https://github.com/cloudposse/atmos/blob/master/internal/exec/utils.go#L16
You need to add your flag to the list. To test it: From the root of the repo, you can execute any
It uses the component and stacks from the examples/complete. To test your flag:
Thanks |
@aknysh Ah good stuff on Regarding testing, I was able to build in a client toolbox image and test it out. I'm more interested to know if you'd like unit tests and if you have any suggestions for unit testing it. |
not sure about what unit testing would do (please explain), but we have a ton of tests in the repo, we try to add tests for every new feature we introduce. Go runs all of them automatically |
fix: adds SkipInitFlag to commonFlags so as to not pass down to command docs: adds --skip-init to `atmos terraform --help` docs
cdca687
to
c2f4781
Compare
@aknysh I've added |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @Gowiem
what
--skip-init
flag which allows skippingterraform init
why
terraform init
and they do not need to run init again.references
atmos terraform
commands should have a--skip-init
flag #178