Skip to content

Commit 13fb492

Browse files
Update the readme with -rm and -version flags (#189)
Signed-off-by: Gabriel Bussolo <[email protected]> Co-authored-by: Mat Ryer <[email protected]>
1 parent d0d706b commit 13fb492

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

README.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,23 +32,25 @@ $ go install github.com/matryer/moq@latest
3232

3333
```
3434
moq [flags] source-dir interface [interface2 [interface3 [...]]]
35-
-fmt string
36-
go pretty-printer: gofmt, goimports or noop (default gofmt)
37-
-out string
38-
output file (default stdout)
39-
-pkg string
40-
package name (default will infer)
41-
-stub
42-
return zero values when no mock implementation is provided, do not panic
35+
36+
-fmt string
37+
go pretty-printer: gofmt, goimports or noop (default gofmt)
38+
-out string
39+
output file (default stdout)
40+
-pkg string
41+
package name (default will infer)
42+
-rm
43+
first remove output file, if it exists
44+
-stub
45+
return zero values when no mock implementation is provided, do not panic
4346
-skip-ensure
4447
suppress mock implementation check, avoid import cycle if mocks
4548
generated outside of the tested package
4649
-with-resets
4750
generate functions to facilitate resetting calls made to a mock
4851
4952
Specifying an alias for the mock is also supported with the format 'interface:alias'
50-
51-
Example: moq -pkg different . MyInterface:MyMock
53+
Ex: moq -pkg different . MyInterface:MyMock
5254
```
5355

5456
**NOTE:** `source-dir` is the directory where the source code (definition) of the target interface is located.

0 commit comments

Comments
 (0)