Skip to content

Commit

Permalink
docs: update the README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pplmx committed Sep 30, 2024
1 parent 12f4b1e commit 4ed3ce8
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,13 @@ husky-rs = "0.1.0"
2. Add Git hooks in the `.husky/hooks` directory. For example, a `pre-commit` hook:

```sh
echo '#!/bin/sh
echo "Running pre-commit hook"
cargo test' > .husky/hooks/pre-commit
cat << EOF > .husky/hooks/pre-commit
#!/bin/sh
echo "hi, pre-commit"
EOF
```
3. Install the hooks by running `cargo build` or `cargo test`:
Expand Down

0 comments on commit 4ed3ce8

Please sign in to comment.