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
{{ message }}
This repository was archived by the owner on Jun 27, 2023. It is now read-only.
destination=flag.String("destination", "", "Output file; defaults to stdout.")
59
-
mockNames=flag.String("mock_names", "", "Comma-separated interfaceName=mockName pairs of explicit mock names to use. Mock names default to 'Mock'+ interfaceName suffix.")
60
-
packageOut=flag.String("package", "", "Package of the generated code; defaults to the package of the input with a 'mock_' prefix.")
61
-
selfPackage=flag.String("self_package", "", "The full package import path for the generated code. The purpose of this flag is to prevent import cycles in the generated code by trying to include its own package. This can happen if the mock's package is set to one of its inputs (usually the main one) and the output is stdio so mockgen cannot detect the final output package. Setting this flag will then tell mockgen which import to exclude.")
62
-
writePkgComment=flag.Bool("write_package_comment", true, "Writes package documentation comment (godoc) if true.")
63
-
copyrightFile=flag.String("copyright_file", "", "Copyright file used to add copyright header")
destination=flag.String("destination", "", "Output file; defaults to stdout.")
59
+
mockNames=flag.String("mock_names", "", "Comma-separated interfaceName=mockName pairs of explicit mock names to use. Mock names default to 'Mock'+ interfaceName suffix.")
60
+
packageOut=flag.String("package", "", "Package of the generated code; defaults to the package of the input with a 'mock_' prefix.")
61
+
selfPackage=flag.String("self_package", "", "The full package import path for the generated code. The purpose of this flag is to prevent import cycles in the generated code by trying to include its own package. This can happen if the mock's package is set to one of its inputs (usually the main one) and the output is stdio so mockgen cannot detect the final output package. Setting this flag will then tell mockgen which import to exclude.")
62
+
writePkgComment=flag.Bool("write_package_comment", true, "Writes package documentation comment (godoc) if true.")
63
+
writeSourceComment=flag.Bool("write_source_comment", true, "Writes original file (source mode) or interface names (reflect mode) comment if true.")
64
+
copyrightFile=flag.String("copyright_file", "", "Copyright file used to add copyright header")
0 commit comments