You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
implement non-interactive flow for create_if_needed() (#1230)
* implement non-interactive flow for create_if_needed()
* Simplify create_if_needed() logic for #1154
- Remove warn_if_exists parameter (not needed for basic behavior)
- Simplify overwrite parameter (only for future extensibility)
- If file/dir exists and overwrite=FALSE: return TRUE, do nothing
- If doesn't exist and interactive: ask user for permission
- If doesn't exist and non-interactive: create silently with message()
- Update tests to cover all three paths
This matches the intended behavior: non-interactive mode creates files
instead of failing, but still respects existing files.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
* chore: version bump & news update
---------
Co-authored-by: Mauricio Vargas Sepulveda <mavargas11@uc.cl>
Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>
0 commit comments