Skip to content

Commit 774e33a

Browse files
committed
docs(README): simplify cli verbose permissions
1 parent 9f61f58 commit 774e33a

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Utility for setting up git hooks. A Deno port of [husky]
1010
git init
1111
```
1212

13-
2. Run setup script
13+
2. Run setup script:
1414

1515
```bash
1616
deno run -A jsr:@vnphanquang/githooks/bin init
@@ -19,24 +19,24 @@ Utility for setting up git hooks. A Deno port of [husky]
1919
Alternatively, run with verbose permissions **at project root**:
2020

2121
```bash
22-
deno run --allow-read="." --allow-write="./.githooks" --allow-run="git" jsr:@vnphanquang/githooks/bin init
22+
deno run --allow-read="." --allow-write=".githooks" --allow-run="git" jsr:@vnphanquang/githooks/bin init
2323
```
2424

2525
3. Edit `./githooks/pre-commit` to your needs. Alternatively, you can create any git hook script by adding
26-
it to `.githooks/<your_hook>`. For example
26+
it to `.githooks/<your_hook>`. For example:
2727

2828
```bash
2929
# .githooks/pre-push
3030
deno fmt
3131
```
3232

3333
4. Optionally, add script as [deno task](https://docs.deno.com/runtime/reference/cli/task_runner/)
34-
to `deno.json`
34+
to `deno.json`:
3535

3636
```json
3737
{
3838
"tasks": {
39-
"githooks": "deno run --allow-read=\".\" --allow-write=\"./.githooks\" --allow-run=\"git\" jsr:@vnphanquang/githooks/bin init"
39+
"githooks": "deno run --allow-read=\".\" --allow-write=\".githooks\" --allow-run=\"git\" jsr:@vnphanquang/githooks/bin init"
4040
}
4141
}
4242
```

0 commit comments

Comments
 (0)