Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ All commands have global support (besides testing the hooks. Still requires bein

#### Stop on failure

When a hook is a sequence of commands, it can be useful to stop the execution when
a command fails.
When a hook is a sequence of commands, it can be useful to stop the execution when a command fails.

Specify the impacted hooks in the `stop-on-failure` config section.

Expand All @@ -75,6 +74,8 @@ Specify the impacted hooks in the `stop-on-failure` config section.
}
```

Always be sure to run the [update command](#updating-hooks) after changing the `stop-on-failure` config section.

#### Shortcut

Add a `cghooks` script to the `scripts` section of your `composer.json` file. That way, commands can be run with `composer cghooks ${command}`. This is ideal if you would rather not edit your system path.
Expand Down