-
Notifications
You must be signed in to change notification settings - Fork 55
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
DXCDT-508: Prevent overwriting already existing files #798
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #798 +/- ##
==========================================
+ Coverage 71.98% 72.00% +0.01%
==========================================
Files 91 91
Lines 11405 11447 +42
==========================================
+ Hits 8210 8242 +32
- Misses 2691 2700 +9
- Partials 504 505 +1
☔ View full report in Codecov by Sentry. |
bd54da2
to
296e486
Compare
internal/cli/terraform.go
Outdated
outputDIR, | ||
) | ||
|
||
if !cli.force && !cli.noInput { |
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.
Should we use canPrompt(cmd)
?
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.
1d19261
(#798) Updated!
a3bb523
to
fbe8d5e
Compare
d90d266
to
1d19261
Compare
🔧 Changes
Adds a check to ensure the output dir is empty, if it's not it prompts the user to proceed in overwriting the files.
📚 References
🔬 Testing
📝 Checklist