Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Detect cycles by default, with an option to run unsafely
Instead of requiring the user specify -C/--cycles to run cycle detection, we run detection on every invocation. If any cycles are detected, they are displayed, an exception is thrown, and the current invocation is aborted. Should the user want to run Phake without cycle detection, they can specify the -u/--unsafe CLI option.
- Loading branch information
1 parent
499a67a
commit b13cd76
Showing
3 changed files
with
30 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?php | ||
|
||
namespace phake; | ||
|
||
class TaskCycleFoundException extends \Exception {}; |