#102 Add support of rules with side effects

This commit is contained in:
nvbn
2015-05-01 04:39:37 +02:00
parent b928a59672
commit b985dfbffc
6 changed files with 49 additions and 21 deletions
+4 -2
View File
@@ -7,5 +7,7 @@ def Command(script='', stdout='', stderr=''):
def Rule(name='', match=lambda *_: True,
get_new_command=lambda *_: '',
enabled_by_default=True):
return types.Rule(name, match, get_new_command, enabled_by_default)
enabled_by_default=True,
side_effect=None):
return types.Rule(name, match, get_new_command,
enabled_by_default, side_effect)