buildtools icon indicating copy to clipboard operation
buildtools copied to clipboard

buildozer: add new_if_absent command

Open amartani opened this issue 4 months ago • 0 comments

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 avatar Aug 09 '25 01:08 amartani