Skip to content

Commit

Permalink
Update README to contain doc about the remove command
Browse files Browse the repository at this point in the history
  • Loading branch information
petergtz authored and CI Bot committed Dec 6, 2018
1 parent 6e3f5a0 commit b113d17
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -498,3 +498,15 @@ display.go
Flags can be:

- `--recursive,-r`: Recursively watch sub-directories as well.

Removing Generated Mocks
-----------------------------

Sometimes it can be useful to systematically remove all mocks and matcher files generated by Pegomock. For this purpose, there is the `remove` command. By simply calling it from the current directory
```
pegomock remove
```
it will remove all Pegomock-generated files in the current directory. It supports additional flags, such as `--recursive` to recursively remove all Pegomock-generated files in sub-directories as well. To see all possible options, run:
```
pegomock remove --help
```

0 comments on commit b113d17

Please sign in to comment.