Skip to content

implement non-interactive flow for create_if_needed()#1230

Merged
ColinFay merged 4 commits intomasterfrom
fix/create-if-needed
Apr 13, 2026
Merged

implement non-interactive flow for create_if_needed()#1230
ColinFay merged 4 commits intomasterfrom
fix/create-if-needed

Conversation

@ColinFay
Copy link
Copy Markdown
Member

No description provided.

pachadotdev and others added 2 commits August 25, 2025 19:11
- 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>
@ColinFay ColinFay merged commit 4cc1298 into master Apr 13, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants