You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fs.BoolVar(&opts.noGenerate, "g", false, "don't put go:generate instruction into the generated code")
387
+
fs.BoolVar(&opts.goGenerateGoRun, "gr", false, `changes go:generate line from "//go:generate minimock args..." to "//go:generate go run github.com/gojuno/minimock/v3/cmd/minimock",
388
+
useful while controlling minimock version with go mod`)
input:=fs.String("i", "*", "comma-separated names of the interfaces to mock, i.e fmt.Stringer,io.Reader\nuse io.* notation to generate mocks for all interfaces in the \"io\" package")
packageNames:=fs.String("p", "", "comma-separated package names,\nby default the generated package names are taken from the destination directory names")
416
395
help:=fs.Bool("h", false, "show this help message")
417
396
version:=fs.Bool("version", false, "display version information and exit")
By default puts "go:generate minimock args..." instruction into generated code if mock was generated with minimock command.
420
-
If mock was generated with go run github.com/gojuno/minimock/v3/cmd/minimock then it puts "go:generate go run github.com/gojuno/minimock/v3/cmd/minimock args...".
421
-
This behaviour can be rewritten by explicitly specifying mode with flag.`)
422
397
423
398
fs.Usage=func() { usage(fs, stderr) }
424
399
@@ -436,12 +411,6 @@ This behaviour can be rewritten by explicitly specifying mode with flag.`)
0 commit comments