Skip to content

Conversation

amartani
Copy link
Contributor

@amartani amartani commented Aug 9, 2025

This change adds a new command 'new_if_absent' to buildozer.

The 'new_if_absent' command behaves the same as the 'new' command, but it does not fail if a rule with the same name already exists. Instead, it performs a no-op.

This is useful for scripts that want to ensure a rule exists without having to check for its existence first.

This change adds a new command 'new_if_absent' to buildozer.

The 'new_if_absent' command behaves the same as the 'new' command, but it does not fail if a rule with the same name already exists. Instead, it performs a no-op.

This is useful for scripts that want to ensure a rule exists without having to check for its existence first.
@amartani amartani marked this pull request as ready for review August 9, 2025 01:09
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.

1 participant