mirror of
https://github.com/nvbn/thefuck.git
synced 2025-09-18 19:22:32 +01:00
#102 Add support of rules with side effects
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user