Skip to content

Conversation

@emersonknapp
Copy link
Member

Closes #6

This enables the condition attribute of the base Action class, which is if in YAML/XML, but that's a Python language keyword.

To handle this generally, instead suffix any reserved word with _, so it looks like

executable(cmd='echo hello', if_='True')

@emersonknapp emersonknapp merged commit b6c8f4f into main Oct 1, 2025
4 checks passed
@emersonknapp emersonknapp deleted the reserved-action-attributes branch October 1, 2025 08:37
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.

Handle if= and other reserved/keyword attributes

1 participant