Merge pull request #339 from mcarton/fix-338

Fix #338
This commit is contained in:
Vladimir Iakovlev
2015-08-19 17:19:38 +03:00
8 changed files with 17 additions and 13 deletions
+5 -1
View File
@@ -218,7 +218,11 @@ match(command: Command, settings: Settings) -> bool
get_new_command(command: Command, settings: Settings) -> str | list[str]
```
Also the rule can contain an optional function `side_effect(command: Command, settings: Settings) -> None`
Also the rule can contain an optional function
```python
side_effect(old_command: Command, fixed_command: str, settings: Settings) -> None
```
and optional `enabled_by_default`, `requires_output` and `priority` variables.
`Command` has three attributes: `script`, `stdout` and `stderr`.