Skip to content

Commit

Permalink
Fix quickstart instruction
Browse files Browse the repository at this point in the history
Apparently go-arg doesn't work with flag aliases
  • Loading branch information
gagbo committed Oct 20, 2023
1 parent 239584e commit 12f66b4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,9 @@ the functions in all source files under the current directory:

``` bash
find . \
-type f \
-path ./vendor -prune -or \
-name '*.go*' \
-print0 | xargs -0 gsed -i -e '/package/{a\//go:generate autometrics --instrument-all --no-doc' -e ':a;n;ba}'
-type d -name vendor -prune -or \
-type f -name '*.go' \
-print0 | xargs -0 gsed -i -e '/package/{a\//go:generate autometrics --inst-all --no-doc' -e ':a;n;ba}'
```

You can remove the `--no-doc` to get the full experience, but the generator will add a lot of comments if so.
Expand Down

0 comments on commit 12f66b4

Please sign in to comment.